Skip to content

Commit a1c0b14

Browse files
Merge pull request #1 from method-inc/dev
Dev
2 parents 68b1b6c + 19a4a57 commit a1c0b14

File tree

229 files changed

+1743
-950
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+1743
-950
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ package-lock.json
3434
.*.swo
3535
.*.swn
3636
.*.swm
37+
.*.swm
38+
*-E
3739

3840
# Sublime Text
3941
*.sublime-project

apps/docs/astro.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ export default defineConfig({
1111
integrations: [
1212
starlight({
1313
favicon: '/favicon.png',
14-
title: 'rn-primitives',
15-
description: 'Documentation for rn-primitives',
14+
title: 'rnr-method',
15+
description: 'Documentation for rnr-method',
1616
components: {
1717
ThemeSelect: './src/components/ThemeSelect.astro',
1818
Head: './src/components/Head.astro',
1919
},
2020
social: {
21-
github: 'https://github.com/roninoss/rn-primitives',
21+
github: 'https://github.com/roninoss/rnr-method',
2222
},
2323
sidebar: [
2424
{

apps/docs/package.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@rn-primitives/docs",
2+
"name": "@rnr-method/docs",
33
"type": "module",
44
"version": "0.0.1",
55
"scripts": {
@@ -20,38 +20,38 @@
2020
"@radix-ui/react-collapsible": "^1.1.0",
2121
"@radix-ui/react-dropdown-menu": "^2.1.1",
2222
"@radix-ui/react-slot": "^1.1.0",
23-
"@rn-primitives/accordion": "workspace:*",
24-
"@rn-primitives/alert-dialog": "workspace:*",
25-
"@rn-primitives/aspect-ratio": "workspace:*",
26-
"@rn-primitives/avatar": "workspace:*",
27-
"@rn-primitives/checkbox": "workspace:*",
28-
"@rn-primitives/collapsible": "workspace:*",
29-
"@rn-primitives/context-menu": "workspace:*",
30-
"@rn-primitives/dialog": "workspace:*",
31-
"@rn-primitives/dropdown-menu": "workspace:*",
32-
"@rn-primitives/hooks": "workspace:*",
33-
"@rn-primitives/hover-card": "workspace:*",
34-
"@rn-primitives/label": "workspace:*",
35-
"@rn-primitives/menubar": "workspace:*",
36-
"@rn-primitives/navigation-menu": "workspace:*",
37-
"@rn-primitives/popover": "workspace:*",
38-
"@rn-primitives/portal": "workspace:*",
39-
"@rn-primitives/progress": "workspace:*",
40-
"@rn-primitives/radio-group": "workspace:*",
41-
"@rn-primitives/select": "workspace:*",
42-
"@rn-primitives/separator": "workspace:*",
43-
"@rn-primitives/slider": "workspace:*",
44-
"@rn-primitives/slot": "workspace:*",
45-
"@rn-primitives/switch": "workspace:*",
46-
"@rn-primitives/table": "workspace:*",
47-
"@rn-primitives/tabs": "workspace:*",
48-
"@rn-primitives/toast": "workspace:*",
49-
"@rn-primitives/toggle": "workspace:*",
50-
"@rn-primitives/toggle-group": "workspace:*",
51-
"@rn-primitives/toolbar": "workspace:*",
52-
"@rn-primitives/tooltip": "workspace:*",
53-
"@rn-primitives/types": "workspace:*",
54-
"@rn-primitives/utils": "workspace:*",
23+
"@rnr-method/accordion": "workspace:*",
24+
"@rnr-method/alert-dialog": "workspace:*",
25+
"@rnr-method/aspect-ratio": "workspace:*",
26+
"@rnr-method/avatar": "workspace:*",
27+
"@rnr-method/checkbox": "workspace:*",
28+
"@rnr-method/collapsible": "workspace:*",
29+
"@rnr-method/context-menu": "workspace:*",
30+
"@rnr-method/dialog": "workspace:*",
31+
"@rnr-method/dropdown-menu": "workspace:*",
32+
"@rnr-method/hooks": "workspace:*",
33+
"@rnr-method/hover-card": "workspace:*",
34+
"@rnr-method/label": "workspace:*",
35+
"@rnr-method/menubar": "workspace:*",
36+
"@rnr-method/navigation-menu": "workspace:*",
37+
"@rnr-method/popover": "workspace:*",
38+
"@rnr-method/portal": "workspace:*",
39+
"@rnr-method/progress": "workspace:*",
40+
"@rnr-method/radio-group": "workspace:*",
41+
"@rnr-method/select": "workspace:*",
42+
"@rnr-method/separator": "workspace:*",
43+
"@rnr-method/slider": "workspace:*",
44+
"@rnr-method/slot": "workspace:*",
45+
"@rnr-method/switch": "workspace:*",
46+
"@rnr-method/table": "workspace:*",
47+
"@rnr-method/tabs": "workspace:*",
48+
"@rnr-method/toast": "workspace:*",
49+
"@rnr-method/toggle": "workspace:*",
50+
"@rnr-method/toggle-group": "workspace:*",
51+
"@rnr-method/toolbar": "workspace:*",
52+
"@rnr-method/tooltip": "workspace:*",
53+
"@rnr-method/types": "workspace:*",
54+
"@rnr-method/utils": "workspace:*",
5555
"@types/react": "~18.3.12",
5656
"@types/react-dom": "^18.2.19",
5757
"@vercel/analytics": "^1.3.1",

apps/docs/src/components/Head.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import Default from '@astrojs/starlight/components/Head.astro'
77
<Default {...Astro.props}><slot /></Default>
88

99
<!-- Render the <meta/> tags for the Open Graph images. -->
10-
<meta property="og:image" content="https://rn-primitives.vercel.app/rn-primitives-og.png" />
11-
<meta name="twitter:image" content="https://rn-primitives.vercel.app/rn-primitives-og.png" />
10+
<meta property="og:image" content="https://rnr-method.vercel.app/rnr-method-og.png" />
11+
<meta name="twitter:image" content="https://rnr-method.vercel.app/rnr-method-og.png" />
1212
<script>
1313
import { inject } from '@vercel/analytics';
1414
inject();

apps/docs/src/content/docs/accordion.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ description: A vertically stacked set of interactive headings that each reveal a
99
import Code from '@/components/ManualCode.astro';
1010
import { LinkButton } from '@/components/react/LinkButton';
1111
import { Aside, Tabs, TabItem } from '@astrojs/starlight/components';
12-
import importedNativeCode from '@/../node_modules/@rn-primitives/accordion/src/accordion.tsx?raw';
13-
import importedWebCode from '@/../node_modules/@rn-primitives/accordion/src/accordion.web.tsx?raw';
14-
import importedTypesCode from '@/../node_modules/@rn-primitives/accordion/src/types.ts?raw';
15-
import importedIndexCode from '@/../node_modules/@rn-primitives/accordion/src/index.ts?raw';
12+
import importedNativeCode from '@/../node_modules/@rnr-method/accordion/src/accordion.tsx?raw';
13+
import importedWebCode from '@/../node_modules/@rnr-method/accordion/src/accordion.web.tsx?raw';
14+
import importedTypesCode from '@/../node_modules/@rnr-method/accordion/src/types.ts?raw';
15+
import importedIndexCode from '@/../node_modules/@rnr-method/accordion/src/index.ts?raw';
1616

1717
A vertically stacked set of interactive headings that each reveal a section of content.
1818

@@ -24,7 +24,7 @@ A vertically stacked set of interactive headings that each reveal a section of c
2424
Install the component via your command line.
2525

2626
```bash
27-
npx expo install @rn-primitives/accordion
27+
npx expo install @rnr-method/accordion
2828
```
2929

3030
</TabItem>
@@ -84,7 +84,7 @@ A vertically stacked set of interactive headings that each reveal a section of c
8484
## Usage
8585

8686
```tsx
87-
import * as AccordionPrimitive from '@rn-primitives/accordion';
87+
import * as AccordionPrimitive from '@rnr-method/accordion';
8888

8989
function Example() {
9090
return (

apps/docs/src/content/docs/alert-dialog.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ description: A modal dialog that interrupts the user with important content and
99
import Code from '@/components/ManualCode.astro';
1010
import { LinkButton } from '@/components/react/LinkButton';
1111
import { Aside, Tabs, TabItem } from '@astrojs/starlight/components';
12-
import importedNativeCode from '@/../node_modules/@rn-primitives/alert-dialog/src/alert-dialog.tsx?raw';
13-
import importedWebCode from '@/../node_modules/@rn-primitives/alert-dialog/src/alert-dialog.web.tsx?raw';
14-
import importedTypesCode from '@/../node_modules/@rn-primitives/alert-dialog/src/types.ts?raw';
15-
import importedIndexCode from '@/../node_modules/@rn-primitives/alert-dialog/src/index.ts?raw';
12+
import importedNativeCode from '@/../node_modules/@rnr-method/alert-dialog/src/alert-dialog.tsx?raw';
13+
import importedWebCode from '@/../node_modules/@rnr-method/alert-dialog/src/alert-dialog.web.tsx?raw';
14+
import importedTypesCode from '@/../node_modules/@rnr-method/alert-dialog/src/types.ts?raw';
15+
import importedIndexCode from '@/../node_modules/@rnr-method/alert-dialog/src/index.ts?raw';
1616

1717
A modal dialog that interrupts the user with important content and expects a response.
1818

@@ -25,14 +25,14 @@ A modal dialog that interrupts the user with important content and expects a res
2525
Install the component via your command line.
2626

2727
```bash
28-
npx expo install @rn-primitives/alert-dialog
28+
npx expo install @rnr-method/alert-dialog
2929
```
3030

3131
<Aside title="Peer dependency">
3232
If you do not have the portal primitive in your project, you will need to add it as well.
3333

3434
```bash
35-
npx expo install @rn-primitives/portal
35+
npx expo install @rnr-method/portal
3636
```
3737
</Aside>
3838

@@ -93,7 +93,7 @@ A modal dialog that interrupts the user with important content and expects a res
9393
Requires a `<PortalHost />` as the last child of your `<Root/>` (`app/_layout.tsx`) component
9494

9595
```tsx
96-
import { PortalHost } from '@rn-primitives/portal';
96+
import { PortalHost } from '@rnr-method/portal';
9797

9898
function Root() {
9999
return (
@@ -109,7 +109,7 @@ A modal dialog that interrupts the user with important content and expects a res
109109
</Aside>
110110

111111
```tsx
112-
import * as AlertDialogPrimitive from '@rn-primitives/alert-dialog';
112+
import * as AlertDialogPrimitive from '@rnr-method/alert-dialog';
113113
import { Text } from 'react-native';
114114

115115
function Example() {

apps/docs/src/content/docs/aspect-ratio.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: Presents content within a chosen aspect ratio.
99
import Code from '@/components/ManualCode.astro';
1010
import { LinkButton } from '@/components/react/LinkButton';
1111
import { Aside, Tabs, TabItem } from '@astrojs/starlight/components';
12-
import importedCode from '@/../node_modules/@rn-primitives/aspect-ratio/src/aspect-ratio.tsx?raw';
12+
import importedCode from '@/../node_modules/@rnr-method/aspect-ratio/src/aspect-ratio.tsx?raw';
1313

1414

1515
Presents content within a chosen aspect ratio.
@@ -22,7 +22,7 @@ Presents content within a chosen aspect ratio.
2222
Install the component via your command line.
2323

2424
```bash
25-
npx expo install @rn-primitives/aspect-ratio
25+
npx expo install @rnr-method/aspect-ratio
2626
```
2727

2828
</TabItem>
@@ -47,7 +47,7 @@ Presents content within a chosen aspect ratio.
4747
## Usage
4848

4949
```tsx
50-
import * as AspectRatio from '@rn-primitives/aspect-ratio';
50+
import * as AspectRatio from '@rnr-method/aspect-ratio';
5151

5252
function Example() {
5353
return (

apps/docs/src/content/docs/avatar.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ description: An image component featuring an alternative representation for depi
99
import Code from '@/components/ManualCode.astro';
1010
import { LinkButton } from '@/components/react/LinkButton';
1111
import { Aside, Tabs, TabItem } from '@astrojs/starlight/components';
12-
import importedNativeCode from '@/../node_modules/@rn-primitives/avatar/src/avatar.tsx?raw';
13-
import importedTypesCode from '@/../node_modules/@rn-primitives/avatar/src/types.ts?raw';
12+
import importedNativeCode from '@/../node_modules/@rnr-method/avatar/src/avatar.tsx?raw';
13+
import importedTypesCode from '@/../node_modules/@rnr-method/avatar/src/types.ts?raw';
1414

1515

1616
An image component featuring an alternative representation for depicting the user.
@@ -23,7 +23,7 @@ An image component featuring an alternative representation for depicting the use
2323
Install the component via your command line.
2424

2525
```bash
26-
npx expo install @rn-primitives/avatar
26+
npx expo install @rnr-method/avatar
2727
```
2828

2929
</TabItem>
@@ -52,7 +52,7 @@ An image component featuring an alternative representation for depicting the use
5252
## Usage
5353

5454
```tsx
55-
import * as AvatarPrimitive from '@rn-primitives/avatar';
55+
import * as AvatarPrimitive from '@rnr-method/avatar';
5656

5757
const GITHUB_AVATAR_URI = 'https://github.com/mrzachnugent.png';
5858

apps/docs/src/content/docs/checkbox.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ description: A box that is a checked (ticked) indicator when activated.
99
import Code from '@/components/ManualCode.astro';
1010
import { LinkButton } from '@/components/react/LinkButton';
1111
import { Aside, Tabs, TabItem } from '@astrojs/starlight/components';
12-
import importedNativeCode from '@/../node_modules/@rn-primitives/checkbox/src/checkbox.tsx?raw';
13-
import importedWebCode from '@/../node_modules/@rn-primitives/checkbox/src/checkbox.web.tsx?raw';
14-
import importedTypesCode from '@/../node_modules/@rn-primitives/checkbox/src/types.ts?raw';
15-
import importedIndexCode from '@/../node_modules/@rn-primitives/checkbox/src/index.ts?raw';
12+
import importedNativeCode from '@/../node_modules/@rnr-method/checkbox/src/checkbox.tsx?raw';
13+
import importedWebCode from '@/../node_modules/@rnr-method/checkbox/src/checkbox.web.tsx?raw';
14+
import importedTypesCode from '@/../node_modules/@rnr-method/checkbox/src/types.ts?raw';
15+
import importedIndexCode from '@/../node_modules/@rnr-method/checkbox/src/index.ts?raw';
1616

1717

1818
A box that is a checked (ticked) indicator when activated.
@@ -25,7 +25,7 @@ A box that is a checked (ticked) indicator when activated.
2525
Install the component via your command line.
2626

2727
```bash
28-
npx expo install @rn-primitives/checkbox
28+
npx expo install @rnr-method/checkbox
2929
```
3030

3131
</TabItem>
@@ -80,7 +80,7 @@ A box that is a checked (ticked) indicator when activated.
8080
## Usage
8181

8282
```tsx
83-
import * as CheckboxPrimitive from '@rn-primitives/checkbox';
83+
import * as CheckboxPrimitive from '@rnr-method/checkbox';
8484

8585
function Example() {
8686
const [checked, setChecked] = React.useState(false);

apps/docs/src/content/docs/collapsible.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ description: A dynamic element that facilitates the expansion or collapse of a p
99
import Code from '@/components/ManualCode.astro';
1010
import { LinkButton } from '@/components/react/LinkButton';
1111
import { Aside, Tabs, TabItem } from '@astrojs/starlight/components';
12-
import importedNativeCode from '@/../node_modules/@rn-primitives/collapsible/src/collapsible.tsx?raw';
13-
import importedWebCode from '@/../node_modules/@rn-primitives/collapsible/src/collapsible.web.tsx?raw';
14-
import importedTypesCode from '@/../node_modules/@rn-primitives/collapsible/src/types.ts?raw';
15-
import importedIndexCode from '@/../node_modules/@rn-primitives/collapsible/src/index.ts?raw';
12+
import importedNativeCode from '@/../node_modules/@rnr-method/collapsible/src/collapsible.tsx?raw';
13+
import importedWebCode from '@/../node_modules/@rnr-method/collapsible/src/collapsible.web.tsx?raw';
14+
import importedTypesCode from '@/../node_modules/@rnr-method/collapsible/src/types.ts?raw';
15+
import importedIndexCode from '@/../node_modules/@rnr-method/collapsible/src/index.ts?raw';
1616

1717

1818
A dynamic element that facilitates the expansion or collapse of a panel.
@@ -25,7 +25,7 @@ A dynamic element that facilitates the expansion or collapse of a panel.
2525
Install the component via your command line.
2626

2727
```bash
28-
npx expo install @rn-primitives/collapsible
28+
npx expo install @rnr-method/collapsible
2929
```
3030

3131
</TabItem>
@@ -78,7 +78,7 @@ A dynamic element that facilitates the expansion or collapse of a panel.
7878
## Usage
7979

8080
```tsx
81-
import * as CollapsiblePrimitive from '@rn-primitives/collapsible';
81+
import * as CollapsiblePrimitive from '@rnr-method/collapsible';
8282

8383
function Example() {
8484
return (

0 commit comments

Comments
 (0)