@cdx-ui/components 0.0.1-beta.13 → 0.0.1-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,7 +15,8 @@ pnpm add @cdx-ui/components
15
15
  - `react` >= 18.0.0
16
16
  - `react-native` >= 0.74.0 _(optional — for native targets)_
17
17
  - `react-native-web` >= 0.19.0 _(optional — for web targets)_
18
- - `uniwind` >= 1.3.0 _(optional — for styled usage)_
18
+
19
+ > **Note:** `uniwind` (1.6.x) is a direct dependency — it is bundled automatically and does not need to be installed separately.
19
20
 
20
21
  ## Usage
21
22
 
@@ -35,7 +36,7 @@ Component stories live in [`apps/storybook`](../../apps/storybook/). See the ful
35
36
 
36
37
  ### Components
37
38
 
38
- AlertDialog, Avatar, BottomSheet, Button, Card, Checkbox, Chip, Dialog, Field, Form, Heading, HStack / VStack, Icon, IconButton, Image, Input, Link, ListItem, OtpInput, ProgressBar, ProgressSegmented, Radio, Select, Switch, Text, VirtualizedList.
39
+ AlertDialog, Avatar, BottomSheet, Button, Card, Checkbox, Chip, Dialog, Field, Form, Heading, HStack / VStack, Icon, IconButton, Image, Input, Link, ListItem, OtpInput, ProgressBar, ProgressSegmented, Radio, Select, Switch, Text, Tile, VirtualizedList.
39
40
 
40
41
  > `Box` is exported but deprecated — use React Native's `View` directly.
41
42
 
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _figma = _interopRequireDefault(require("figma"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ // url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/branch/LkwnLe2gHRg0vLdfg9Frjs/%E2%AD%90-CDS-V2--React-Native?node-id=399-3385
10
+ // source=packages/components/src/components/Heading/index.tsx
11
+ // component=Heading
12
+ // Use the same branch URL as Button: Code Connect is scoped per file key; main vs branch are separate targets.
13
+
14
+ const instance = _figma.default.selectedInstance;
15
+
16
+ // Figma size values are identical to code size values — no renaming needed.
17
+ const size = instance.getEnum('size', {
18
+ xl: 'xl',
19
+ lg: 'lg',
20
+ md: 'md',
21
+ sm: 'sm',
22
+ xs: 'xs'
23
+ });
24
+ const text = instance.findText('{Heading}').textContent;
25
+ var _default = exports.default = {
26
+ id: 'heading',
27
+ imports: ["import { Heading } from '@cdx-ui/components'"],
28
+ example: _figma.default.code`<Heading size="${size}">${text}</Heading>`
29
+ };
30
+ //# sourceMappingURL=Heading.figma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_figma","_interopRequireDefault","require","e","__esModule","default","instance","figma","selectedInstance","size","getEnum","xl","lg","md","sm","xs","text","findText","textContent","_default","exports","id","imports","example","code"],"sourceRoot":"../../../src","sources":["figma/Heading.figma.ts"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0B,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAJ1B;AACA;AACA;AACA;;AAGA,MAAMG,QAAQ,GAAGC,cAAK,CAACC,gBAAgB;;AAEvC;AACA,MAAMC,IAAI,GAAGH,QAAQ,CAACI,OAAO,CAAC,MAAM,EAAE;EACpCC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE;AACN,CAAC,CAAC;AAEF,MAAMC,IAAI,GAAIV,QAAQ,CAACW,QAAQ,CAAC,WAAW,CAAC,CAAgCC,WAAW;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAf,OAAA,GAEzE;EACbgB,EAAE,EAAE,SAAS;EACbC,OAAO,EAAE,CAAC,8CAA8C,CAAC;EACzDC,OAAO,EAAEhB,cAAK,CAACiB,IAAI,kBAAkBf,IAAI,KAAKO,IAAI;AACpD,CAAC","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ // url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/branch/LkwnLe2gHRg0vLdfg9Frjs/%E2%AD%90-CDS-V2--React-Native?node-id=399-3385
4
+ // source=packages/components/src/components/Heading/index.tsx
5
+ // component=Heading
6
+ // Use the same branch URL as Button: Code Connect is scoped per file key; main vs branch are separate targets.
7
+ import figma from 'figma';
8
+ const instance = figma.selectedInstance;
9
+
10
+ // Figma size values are identical to code size values — no renaming needed.
11
+ const size = instance.getEnum('size', {
12
+ xl: 'xl',
13
+ lg: 'lg',
14
+ md: 'md',
15
+ sm: 'sm',
16
+ xs: 'xs'
17
+ });
18
+ const text = instance.findText('{Heading}').textContent;
19
+ export default {
20
+ id: 'heading',
21
+ imports: ["import { Heading } from '@cdx-ui/components'"],
22
+ example: figma.code`<Heading size="${size}">${text}</Heading>`
23
+ };
24
+ //# sourceMappingURL=Heading.figma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["figma","instance","selectedInstance","size","getEnum","xl","lg","md","sm","xs","text","findText","textContent","id","imports","example","code"],"sourceRoot":"../../../src","sources":["figma/Heading.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;;AAEvC;AACA,MAAMC,IAAI,GAAGF,QAAQ,CAACG,OAAO,CAAC,MAAM,EAAE;EACpCC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE;AACN,CAAC,CAAC;AAEF,MAAMC,IAAI,GAAIT,QAAQ,CAACU,QAAQ,CAAC,WAAW,CAAC,CAAgCC,WAAW;AAEvF,eAAe;EACbC,EAAE,EAAE,SAAS;EACbC,OAAO,EAAE,CAAC,8CAA8C,CAAC;EACzDC,OAAO,EAAEf,KAAK,CAACgB,IAAI,kBAAkBb,IAAI,KAAKO,IAAI;AACpD,CAAC","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ import figma from 'figma';
2
+ declare const _default: {
3
+ id: string;
4
+ imports: string[];
5
+ example: figma.TemplateStringResult;
6
+ };
7
+ export default _default;
8
+ //# sourceMappingURL=Heading.figma.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Heading.figma.d.ts","sourceRoot":"","sources":["../../../src/figma/Heading.figma.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAe1B,wBAIE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdx-ui/components",
3
- "version": "0.0.1-beta.13",
3
+ "version": "0.0.1-beta.15",
4
4
  "main": "lib/commonjs/index.js",
5
5
  "module": "lib/module/index.js",
6
6
  "react-native": "src/index.ts",
@@ -67,9 +67,9 @@
67
67
  "@gorhom/bottom-sheet": "^5.2.6",
68
68
  "class-variance-authority": "^0.7.1",
69
69
  "uniwind": "1.6.1",
70
- "@cdx-ui/utils": "0.0.1-beta.13",
71
- "@cdx-ui/icons": "0.0.1-beta.13",
72
- "@cdx-ui/primitives": "0.0.1-beta.13"
70
+ "@cdx-ui/primitives": "0.0.1-beta.15",
71
+ "@cdx-ui/icons": "0.0.1-beta.15",
72
+ "@cdx-ui/utils": "0.0.1-beta.15"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/react": "*",