@cdx-ui/components 0.0.1-beta.70 → 0.0.1-beta.72

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.
Files changed (76) hide show
  1. package/lib/commonjs/components/Alert/index.js +263 -0
  2. package/lib/commonjs/components/Alert/index.js.map +1 -0
  3. package/lib/commonjs/components/Alert/styles.js +87 -0
  4. package/lib/commonjs/components/Alert/styles.js.map +1 -0
  5. package/lib/commonjs/components/QuickActionButton/index.js +133 -0
  6. package/lib/commonjs/components/QuickActionButton/index.js.map +1 -0
  7. package/lib/commonjs/components/QuickActionButton/styles.js +17 -0
  8. package/lib/commonjs/components/QuickActionButton/styles.js.map +1 -0
  9. package/lib/commonjs/components/index.js +24 -0
  10. package/lib/commonjs/components/index.js.map +1 -1
  11. package/lib/commonjs/figma/Alert.Button.figma.js +31 -0
  12. package/lib/commonjs/figma/Alert.Button.figma.js.map +1 -0
  13. package/lib/commonjs/figma/Alert.Close.figma.js +24 -0
  14. package/lib/commonjs/figma/Alert.Close.figma.js.map +1 -0
  15. package/lib/commonjs/figma/Alert.Description.figma.js +20 -0
  16. package/lib/commonjs/figma/Alert.Description.figma.js.map +1 -0
  17. package/lib/commonjs/figma/Alert.Title.figma.js +20 -0
  18. package/lib/commonjs/figma/Alert.Title.figma.js.map +1 -0
  19. package/lib/commonjs/figma/Alert.figma.js +42 -0
  20. package/lib/commonjs/figma/Alert.figma.js.map +1 -0
  21. package/lib/commonjs/figma/QuickActionButton.figma.js +38 -0
  22. package/lib/commonjs/figma/QuickActionButton.figma.js.map +1 -0
  23. package/lib/module/components/Alert/index.js +259 -0
  24. package/lib/module/components/Alert/index.js.map +1 -0
  25. package/lib/module/components/Alert/styles.js +84 -0
  26. package/lib/module/components/Alert/styles.js.map +1 -0
  27. package/lib/module/components/QuickActionButton/index.js +129 -0
  28. package/lib/module/components/QuickActionButton/index.js.map +1 -0
  29. package/lib/module/components/QuickActionButton/styles.js +13 -0
  30. package/lib/module/components/QuickActionButton/styles.js.map +1 -0
  31. package/lib/module/components/index.js +2 -0
  32. package/lib/module/components/index.js.map +1 -1
  33. package/lib/module/figma/Alert.Button.figma.js +25 -0
  34. package/lib/module/figma/Alert.Button.figma.js.map +1 -0
  35. package/lib/module/figma/Alert.Close.figma.js +18 -0
  36. package/lib/module/figma/Alert.Close.figma.js.map +1 -0
  37. package/lib/module/figma/Alert.Description.figma.js +14 -0
  38. package/lib/module/figma/Alert.Description.figma.js.map +1 -0
  39. package/lib/module/figma/Alert.Title.figma.js +14 -0
  40. package/lib/module/figma/Alert.Title.figma.js.map +1 -0
  41. package/lib/module/figma/Alert.figma.js +36 -0
  42. package/lib/module/figma/Alert.figma.js.map +1 -0
  43. package/lib/module/figma/QuickActionButton.figma.js +32 -0
  44. package/lib/module/figma/QuickActionButton.figma.js.map +1 -0
  45. package/lib/typescript/components/Alert/index.d.ts +67 -0
  46. package/lib/typescript/components/Alert/index.d.ts.map +1 -0
  47. package/lib/typescript/components/Alert/styles.d.ts +19 -0
  48. package/lib/typescript/components/Alert/styles.d.ts.map +1 -0
  49. package/lib/typescript/components/Button/styles.d.ts +4 -4
  50. package/lib/typescript/components/Chip/styles.d.ts +3 -3
  51. package/lib/typescript/components/IconButton/styles.d.ts +2 -2
  52. package/lib/typescript/components/QuickActionButton/index.d.ts +41 -0
  53. package/lib/typescript/components/QuickActionButton/index.d.ts.map +1 -0
  54. package/lib/typescript/components/QuickActionButton/styles.d.ts +7 -0
  55. package/lib/typescript/components/QuickActionButton/styles.d.ts.map +1 -0
  56. package/lib/typescript/components/Tile/styles.d.ts +1 -1
  57. package/lib/typescript/components/index.d.ts +2 -0
  58. package/lib/typescript/components/index.d.ts.map +1 -1
  59. package/lib/typescript/figma/Alert.Button.figma.d.ts +11 -0
  60. package/lib/typescript/figma/Alert.Button.figma.d.ts.map +1 -0
  61. package/lib/typescript/figma/Alert.Close.figma.d.ts +11 -0
  62. package/lib/typescript/figma/Alert.Close.figma.d.ts.map +1 -0
  63. package/lib/typescript/figma/Alert.Description.figma.d.ts +8 -0
  64. package/lib/typescript/figma/Alert.Description.figma.d.ts.map +1 -0
  65. package/lib/typescript/figma/Alert.Title.figma.d.ts +8 -0
  66. package/lib/typescript/figma/Alert.Title.figma.d.ts.map +1 -0
  67. package/lib/typescript/figma/Alert.figma.d.ts +8 -0
  68. package/lib/typescript/figma/Alert.figma.d.ts.map +1 -0
  69. package/lib/typescript/figma/QuickActionButton.figma.d.ts +8 -0
  70. package/lib/typescript/figma/QuickActionButton.figma.d.ts.map +1 -0
  71. package/package.json +4 -4
  72. package/src/components/Alert/index.tsx +318 -0
  73. package/src/components/Alert/styles.ts +88 -0
  74. package/src/components/QuickActionButton/index.tsx +161 -0
  75. package/src/components/QuickActionButton/styles.ts +42 -0
  76. package/src/components/index.ts +2 -0
@@ -0,0 +1,129 @@
1
+ "use strict";
2
+
3
+ import { forwardRef } from 'react';
4
+ import { Text, View } from 'react-native';
5
+ import { ButtonRoot, dataAttributes, mergeDataAttributes, useButtonContext } from '@cdx-ui/primitives';
6
+ import { cn } from '@cdx-ui/utils';
7
+ import { Icon } from '../Icon';
8
+ import { quickActionButtonGlyphVariants, quickActionButtonIndicatorVariants, quickActionButtonLabelVariants, quickActionButtonRootVariants } from './styles';
9
+
10
+ // =============================================================================
11
+ // ROOT
12
+ // =============================================================================
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ const QuickActionButtonRoot = /*#__PURE__*/forwardRef(({
15
+ className,
16
+ style,
17
+ children,
18
+ accessibilityRole = 'button',
19
+ ...props
20
+ }, ref) => /*#__PURE__*/_jsx(ButtonRoot, {
21
+ ref: ref,
22
+ accessibilityRole: accessibilityRole,
23
+ className: cn(quickActionButtonRootVariants(), className),
24
+ style: style,
25
+ ...props,
26
+ ...mergeDataAttributes(props, dataAttributes({
27
+ slot: 'quick-action-button'
28
+ })),
29
+ children: children
30
+ }));
31
+ QuickActionButtonRoot.displayName = 'QuickActionButton';
32
+
33
+ // =============================================================================
34
+ // INDICATOR
35
+ // Circular container. Auto-rendered by `QuickActionButton.Icon` in standard usage.
36
+ // Exposed as a compound member for Code Connect parity and custom compositions.
37
+ // =============================================================================
38
+
39
+ const QuickActionButtonIndicator = /*#__PURE__*/forwardRef(({
40
+ className,
41
+ style,
42
+ children,
43
+ ...props
44
+ }, ref) => {
45
+ const {
46
+ hover,
47
+ focus,
48
+ active,
49
+ disabled,
50
+ focusVisible
51
+ } = useButtonContext();
52
+ return /*#__PURE__*/_jsx(View, {
53
+ ref: ref,
54
+ className: cn(quickActionButtonIndicatorVariants(), className),
55
+ style: style,
56
+ ...props,
57
+ ...mergeDataAttributes(props, dataAttributes({
58
+ slot: 'quick-action-button-indicator',
59
+ hover,
60
+ focus,
61
+ active,
62
+ disabled,
63
+ focusVisible
64
+ })),
65
+ children: children
66
+ });
67
+ });
68
+ QuickActionButtonIndicator.displayName = 'QuickActionButton.Indicator';
69
+
70
+ // =============================================================================
71
+ // ICON
72
+ // Renders the Indicator circle + icon glyph as one convenient sub-component.
73
+ // This is the primary way consumers add the icon to a QuickActionButton.
74
+ // =============================================================================
75
+
76
+ function QuickActionButtonIcon({
77
+ as: IconComponent,
78
+ className,
79
+ indicatorClassName
80
+ }) {
81
+ return /*#__PURE__*/_jsx(QuickActionButtonIndicator, {
82
+ className: indicatorClassName,
83
+ children: /*#__PURE__*/_jsx(Icon, {
84
+ as: IconComponent,
85
+ className: cn(quickActionButtonGlyphVariants(), className)
86
+ })
87
+ });
88
+ }
89
+ QuickActionButtonIcon.displayName = 'QuickActionButton.Icon';
90
+
91
+ // =============================================================================
92
+ // LABEL
93
+ // =============================================================================
94
+
95
+ const QuickActionButtonLabel = /*#__PURE__*/forwardRef(({
96
+ className,
97
+ style,
98
+ children,
99
+ ...props
100
+ }, ref) => {
101
+ const {
102
+ disabled
103
+ } = useButtonContext();
104
+ return /*#__PURE__*/_jsx(Text, {
105
+ ref: ref,
106
+ numberOfLines: 2,
107
+ ellipsizeMode: "tail",
108
+ className: cn(quickActionButtonLabelVariants(), className),
109
+ style: style,
110
+ ...props,
111
+ ...mergeDataAttributes(props, dataAttributes({
112
+ slot: 'quick-action-button-label',
113
+ disabled
114
+ })),
115
+ children: children
116
+ });
117
+ });
118
+ QuickActionButtonLabel.displayName = 'QuickActionButton.Label';
119
+
120
+ // =============================================================================
121
+ // COMPOUND EXPORT
122
+ // =============================================================================
123
+
124
+ export const QuickActionButton = Object.assign(QuickActionButtonRoot, {
125
+ Indicator: QuickActionButtonIndicator,
126
+ Icon: QuickActionButtonIcon,
127
+ Label: QuickActionButtonLabel
128
+ });
129
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["forwardRef","Text","View","ButtonRoot","dataAttributes","mergeDataAttributes","useButtonContext","cn","Icon","quickActionButtonGlyphVariants","quickActionButtonIndicatorVariants","quickActionButtonLabelVariants","quickActionButtonRootVariants","jsx","_jsx","QuickActionButtonRoot","className","style","children","accessibilityRole","props","ref","slot","displayName","QuickActionButtonIndicator","hover","focus","active","disabled","focusVisible","QuickActionButtonIcon","as","IconComponent","indicatorClassName","QuickActionButtonLabel","numberOfLines","ellipsizeMode","QuickActionButton","Object","assign","Indicator","Label"],"sourceRoot":"../../../../src","sources":["components/QuickActionButton/index.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAwB,OAAO;AAClD,SAASC,IAAI,EAAEC,IAAI,QAA6D,cAAc;AAC9F,SACEC,UAAU,EACVC,cAAc,EACdC,mBAAmB,EAEnBC,gBAAgB,QACX,oBAAoB;AAE3B,SAASC,EAAE,QAAQ,eAAe;AAClC,SAASC,IAAI,QAAwB,SAAS;AAC9C,SACEC,8BAA8B,EAC9BC,kCAAkC,EAClCC,8BAA8B,EAC9BC,6BAA6B,QAExB,UAAU;;AAEjB;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOA,MAAMC,qBAAqB,gBAAGf,UAAU,CACtC,CAAC;EAAEgB,SAAS;EAAEC,KAAK;EAAEC,QAA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2
+
3
+ import { Platform } from 'react-native';
4
+ import { cva } from 'class-variance-authority';
5
+ import { DISABLED_CURSOR, TRANSITION_COLORS } from '../../styles/primitives';
6
+ export const quickActionButtonRootVariants = cva(['flex flex-col items-center gap-2', 'min-w-[60px] max-w-20', 'web:outline-none web:focus:outline-none web:focus-visible:outline-none', DISABLED_CURSOR]);
7
+ export const quickActionButtonIndicatorVariants = cva(['flex items-center justify-center shrink-0', 'h-[60px] w-[60px] min-h-[60px] min-w-[60px] p-2', 'rounded-[var(--border-radius-round)]', 'border border-stroke-secondary', 'bg-surface-primary', 'overflow-hidden', TRANSITION_COLORS, 'data-[disabled=true]:opacity-[var(--opacity-disabled)]', Platform.select({
8
+ default: 'data-[active=true]:bg-surface-primary-active',
9
+ web: ['data-[hover=true]:bg-surface-primary-hover', 'data-[active=true]:data-[hover=true]:bg-surface-secondary-active', 'web:data-[focus-visible=true]:ring-2', 'web:data-[focus-visible=true]:ring-[var(--color-stroke-ring)]', 'web:data-[focus-visible=true]:ring-offset-2'].join(' ')
10
+ })]);
11
+ export const quickActionButtonGlyphVariants = cva(['size-6', 'text-content-action']);
12
+ export const quickActionButtonLabelVariants = cva(['body-sm font-medium', 'text-content-primary text-center', 'w-full min-w-0 max-w-20 self-center', 'data-[disabled=true]:opacity-[var(--opacity-disabled)]']);
13
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Platform","cva","DISABLED_CURSOR","TRANSITION_COLORS","quickActionButtonRootVariants","quickActionButtonIndicatorVariants","select","default","web","join","quickActionButtonGlyphVariants","quickActionButtonLabelVariants"],"sourceRoot":"../../../../src","sources":["components/QuickActionButton/styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,GAAG,QAA2B,0BAA0B;AACjE,SAASC,eAAe,EAAEC,iBAAiB,QAAQ,yBAAyB;AAE5E,OAAO,MAAMC,6BAA6B,GAAGH,GAAG,CAAC,CAC/C,kCAAkC,EAClC,uBAAuB,EACvB,wEAAwE,EACxEC,eAAe,CAChB,CAAC;AAEF,OAAO,MAAMG,kCAAkC,GAAGJ,GAAG,CAAC,CACpD,2CAA2C,EAC3C,iDAAiD,EACjD,sCAAsC,EACtC,gCAAgC,EAChC,oBAAoB,EACpB,iBAAiB,EACjBE,iBAAiB,EACjB,wDAAwD,EACxDH,QAAQ,CAACM,MAAM,CAAC;EACdC,OAAO,EAAE,8CAA8C;EACvDC,GAAG,EAAE,CACH,4CAA4C,EAC5C,kEAAkE,EAClE,sCAAsC,EACtC,+DAA+D,EAC/D,6CAA6C,CAC9C,CAACC,IAAI,CAAC,GAAG;AACZ,CAAC,CAAC,CACH,CAAC;AAEF,OAAO,MAAMC,8BAA8B,GAAGT,GAAG,CAAC,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;AAEpF,OAAO,MAAMU,8BAA8B,GAAGV,GAAG,CAAC,CAChD,qBAAqB,EACrB,kCAAkC,EAClC,qCAAqC,EACrC,wDAAwD,CACzD,CAAC","ignoreList":[]}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ export * from './Alert';
3
4
  export * from './AlertDialog';
4
5
  export * from './Avatar';
5
6
  export * from './BottomSheet';
@@ -30,4 +31,5 @@ export * from './Heading';
30
31
  export * from './Text';
31
32
  export * from './Icon';
32
33
  export * from './IconButton';
34
+ export * from './QuickActionButton';
33
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["HStack","VStack"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,qBAAqB;AACnC,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,mBAAmB;AACjC,cAAc,UAAU;AACxB,cAAc,QAAQ;AACtB,SAASA,MAAM,EAAEC,MAAM,QAAQ,SAAS;AACxC,cAAc,WAAW;AACzB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["HStack","VStack"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;AAAA,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,qBAAqB;AACnC,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,mBAAmB;AACjC,cAAc,UAAU;AACxB,cAAc,QAAQ;AACtB,SAASA,MAAM,EAAEC,MAAM,QAAQ,SAAS;AACxC,cAAc,WAAW;AACzB,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,qBAAqB","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ // url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/%E2%AD%90-Forge-DS--React-Native-Components?node-id=6665-19528
4
+ // source=packages/components/src/components/Alert/index.tsx
5
+ // component=Alert.Button
6
+ import figma from 'figma';
7
+ const instance = figma.selectedInstance;
8
+ const buttonInstance = instance.findInstance('Button');
9
+ const buttonSnippet = buttonInstance?.type === 'INSTANCE' ? buttonInstance.executeTemplate().example : null;
10
+ const labelHandle = instance.findText('Button.Label', {
11
+ traverseInstances: true
12
+ });
13
+ const label = labelHandle?.textContent;
14
+ export default {
15
+ id: 'alert-button',
16
+ imports: ["import { Button } from '@cdx-ui/components'"],
17
+ metadata: {
18
+ nestable: true
19
+ },
20
+ example: buttonSnippet ?? (label ? figma.code`
21
+ <Button variant="ghost" size="small">
22
+ <Button.Label>${label}</Button.Label>
23
+ </Button>` : null)
24
+ };
25
+ //# sourceMappingURL=Alert.Button.figma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["figma","instance","selectedInstance","buttonInstance","findInstance","buttonSnippet","type","executeTemplate","example","labelHandle","findText","traverseInstances","label","textContent","id","imports","metadata","nestable","code"],"sourceRoot":"../../../src","sources":["figma/Alert.Button.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;AAEvC,MAAMC,cAAc,GAAGF,QAAQ,CAACG,YAAY,CAAC,QAAQ,CAAC;AACtD,MAAMC,aAAa,GACjBF,cAAc,EAAEG,IAAI,KAAK,UAAU,GAAGH,cAAc,CAACI,eAAe,CAAC,CAAC,CAACC,OAAO,GAAG,IAAI;AAEvF,MAAMC,WAAW,GAAGR,QAAQ,CAACS,QAAQ,CAAC,cAAc,EAAE;EACpDC,iBAAiB,EAAE;AACrB,CAAC,CAAsC;AACvC,MAAMC,KAAK,GAAGH,WAAW,EAAEI,WAAW;AAEtC,eAAe;EACbC,EAAE,EAAE,cAAc;EAClBC,OAAO,EAAE,CAAC,6CAA6C,CAAC;EACxDC,QAAQ,EAAE;IAAEC,QAAQ,EAAE;EAAK,CAAC;EAC5BT,OAAO,EACLH,aAAa,KACZO,KAAK,GACFZ,KAAK,CAACkB,IAAI;AAClB;AACA,kBAAkBN,KAAK;AACvB,UAAU,GACF,IAAI;AACZ,CAAC","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ // url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/%E2%AD%90-Forge-DS--React-Native-Components?node-id=6665-19498
4
+ // source=packages/components/src/components/Alert/index.tsx
5
+ // component=Alert.Close
6
+ import figma from 'figma';
7
+ const instance = figma.selectedInstance;
8
+ const iconButtonInstance = instance.findInstance('IconButton');
9
+ const iconButtonSnippet = iconButtonInstance?.type === 'INSTANCE' ? iconButtonInstance.executeTemplate().example : null;
10
+ export default {
11
+ id: 'alert-close',
12
+ imports: ["import { IconButton } from '@cdx-ui/components'", "import { Close } from '@cdx-ui/icons'"],
13
+ metadata: {
14
+ nestable: true
15
+ },
16
+ example: iconButtonSnippet ?? figma.code`<IconButton variant="ghost" size="small" as={Close} accessibilityLabel="Dismiss" />`
17
+ };
18
+ //# sourceMappingURL=Alert.Close.figma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["figma","instance","selectedInstance","iconButtonInstance","findInstance","iconButtonSnippet","type","executeTemplate","example","id","imports","metadata","nestable","code"],"sourceRoot":"../../../src","sources":["figma/Alert.Close.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;AAEvC,MAAMC,kBAAkB,GAAGF,QAAQ,CAACG,YAAY,CAAC,YAAY,CAAC;AAC9D,MAAMC,iBAAiB,GACrBF,kBAAkB,EAAEG,IAAI,KAAK,UAAU,GAAGH,kBAAkB,CAACI,eAAe,CAAC,CAAC,CAACC,OAAO,GAAG,IAAI;AAE/F,eAAe;EACbC,EAAE,EAAE,aAAa;EACjBC,OAAO,EAAE,CACP,iDAAiD,EACjD,uCAAuC,CACxC;EACDC,QAAQ,EAAE;IAAEC,QAAQ,EAAE;EAAK,CAAC;EAC5BJ,OAAO,EACLH,iBAAiB,IACjBL,KAAK,CAACa,IAAI;AACd,CAAC","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ // url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/%E2%AD%90-Forge-DS--React-Native-Components?node-id=6572-8580
4
+ // source=packages/components/src/components/Alert/index.tsx
5
+ // component=Alert.Description
6
+ import figma from 'figma';
7
+ const instance = figma.selectedInstance;
8
+ const description = instance.findText('{description}').textContent;
9
+ export default {
10
+ id: 'alert-description',
11
+ imports: ["import { Alert } from '@cdx-ui/components'"],
12
+ example: figma.code`<Alert.Description>${description}</Alert.Description>`
13
+ };
14
+ //# sourceMappingURL=Alert.Description.figma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["figma","instance","selectedInstance","description","findText","textContent","id","imports","example","code"],"sourceRoot":"../../../src","sources":["figma/Alert.Description.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;AAEvC,MAAMC,WAAW,GAAIF,QAAQ,CAACG,QAAQ,CAAC,eAAe,CAAC,CAAgCC,WAAW;AAElG,eAAe;EACbC,EAAE,EAAE,mBAAmB;EACvBC,OAAO,EAAE,CAAC,4CAA4C,CAAC;EACvDC,OAAO,EAAER,KAAK,CAACS,IAAI,sBAAsBN,WAAW;AACtD,CAAC","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ // url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/%E2%AD%90-Forge-DS--React-Native-Components?node-id=6572-8577
4
+ // source=packages/components/src/components/Alert/index.tsx
5
+ // component=Alert.Title
6
+ import figma from 'figma';
7
+ const instance = figma.selectedInstance;
8
+ const title = instance.findText('{title}').textContent;
9
+ export default {
10
+ id: 'alert-title',
11
+ imports: ["import { Alert } from '@cdx-ui/components'"],
12
+ example: figma.code`<Alert.Title>${title}</Alert.Title>`
13
+ };
14
+ //# sourceMappingURL=Alert.Title.figma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["figma","instance","selectedInstance","title","findText","textContent","id","imports","example","code"],"sourceRoot":"../../../src","sources":["figma/Alert.Title.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;AAEvC,MAAMC,KAAK,GAAIF,QAAQ,CAACG,QAAQ,CAAC,SAAS,CAAC,CAAgCC,WAAW;AAEtF,eAAe;EACbC,EAAE,EAAE,aAAa;EACjBC,OAAO,EAAE,CAAC,4CAA4C,CAAC;EACvDC,OAAO,EAAER,KAAK,CAACS,IAAI,gBAAgBN,KAAK;AAC1C,CAAC","ignoreList":[]}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ // url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/%E2%AD%90-Forge-DS--React-Native-Components?node-id=6665-19536
4
+ // source=packages/components/src/components/Alert/index.tsx
5
+ // component=Alert
6
+ import figma from 'figma';
7
+ const instance = figma.selectedInstance;
8
+ const severity = instance.getEnum('severity', {
9
+ danger: 'danger',
10
+ warning: 'warning',
11
+ success: 'success',
12
+ info: 'info'
13
+ });
14
+ const showHeadline = instance.getBoolean('Show Headline?');
15
+ const headlineInstance = instance.findInstance('Alert.Headline');
16
+ const headlineSnippet = showHeadline && headlineInstance?.type === 'INSTANCE' ? headlineInstance.executeTemplate().example : null;
17
+ const messageInstance = instance.findInstance('Alert.Message');
18
+ const messageSnippet = messageInstance?.type === 'INSTANCE' ? messageInstance.executeTemplate().example : null;
19
+ const showTrailingSlot = instance.getBoolean('Show TrailingSlot?');
20
+ const trailingSlot = instance.getSlot('Alert.TrailingSlot');
21
+ const trailingChildren = showTrailingSlot && trailingSlot ? figma.helpers.react.renderChildren(trailingSlot) : null;
22
+ export default {
23
+ id: 'alert',
24
+ imports: ["import { Alert } from '@cdx-ui/components'"],
25
+ example: figma.code`
26
+ <Alert severity="${severity}">
27
+ <Alert.Icon />
28
+ ${headlineSnippet}
29
+ ${messageSnippet}
30
+ ${trailingChildren ? figma.code`
31
+ <Alert.Actions>
32
+ ${trailingChildren}
33
+ </Alert.Actions>` : null}
34
+ </Alert>`
35
+ };
36
+ //# sourceMappingURL=Alert.figma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["figma","instance","selectedInstance","severity","getEnum","danger","warning","success","info","showHeadline","getBoolean","headlineInstance","findInstance","headlineSnippet","type","executeTemplate","example","messageInstance","messageSnippet","showTrailingSlot","trailingSlot","getSlot","trailingChildren","helpers","react","renderChildren","id","imports","code"],"sourceRoot":"../../../src","sources":["figma/Alert.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;AAEvC,MAAMC,QAAQ,GAAGF,QAAQ,CAACG,OAAO,CAAC,UAAU,EAAE;EAC5CC,MAAM,EAAE,QAAQ;EAChBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,IAAI,EAAE;AACR,CAAC,CAAC;AAEF,MAAMC,YAAY,GAAGR,QAAQ,CAACS,UAAU,CAAC,gBAAgB,CAAC;AAE1D,MAAMC,gBAAgB,GAAGV,QAAQ,CAACW,YAAY,CAAC,gBAAgB,CAAC;AAChE,MAAMC,eAAe,GACnBJ,YAAY,IAAIE,gBAAgB,EAAEG,IAAI,KAAK,UAAU,GACjDH,gBAAgB,CAACI,eAAe,CAAC,CAAC,CAACC,OAAO,GAC1C,IAAI;AAEV,MAAMC,eAAe,GAAGhB,QAAQ,CAACW,YAAY,CAAC,eAAe,CAAC;AAC9D,MAAMM,cAAc,GAClBD,eAAe,EAAEH,IAAI,KAAK,UAAU,GAAGG,eAAe,CAACF,eAAe,CAAC,CAAC,CAACC,OAAO,GAAG,IAAI;AAEzF,MAAMG,gBAAgB,GAAGlB,QAAQ,CAACS,UAAU,CAAC,oBAAoB,CAAC;AAClE,MAAMU,YAAY,GAAGnB,QAAQ,CAACoB,OAAO,CAAC,oBAAoB,CAAC;AAC3D,MAAMC,gBAAgB,GACpBH,gBAAgB,IAAIC,YAAY,GAAGpB,KAAK,CAACuB,OAAO,CAACC,KAAK,CAACC,cAAc,CAACL,YAAY,CAAC,GAAG,IAAI;AAE5F,eAAe;EACbM,EAAE,EAAE,OAAO;EACXC,OAAO,EAAE,CAAC,4CAA4C,CAAC;EACvDX,OAAO,EAAEhB,KAAK,CAAC4B,IAAI;AACrB,mBAAmBzB,QAAQ;AAC3B;AACA,IAAIU,eAAe;AACnB,IAAIK,cAAc;AAClB,IACII,gBAAgB,GACZtB,KAAK,CAAC4B,IAAI;AAClB;AACA,MAAMN,gBAAgB;AACtB,mBAAmB,GACX,IAAI;AACZ;AAEA,CAAC","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ // url=https://www.figma.com/design/0lEVMVlLj8ZS4fgItr3pmd/%E2%AD%90-Forge-DS--Components?node-id=5283-1723
4
+ // source=packages/components/src/components/QuickActionButton/index.tsx
5
+ // component=QuickActionButton
6
+ import figma from 'figma';
7
+ const instance = figma.selectedInstance;
8
+
9
+ // Enum-as-boolean: isDisabled is a VARIANT property in Figma ("true"/"false").
10
+ const isDisabled = instance.getEnum('isDisabled', {
11
+ true: true,
12
+ false: undefined
13
+ });
14
+ const isDisabledProp = figma.helpers.react.renderProp('isDisabled', isDisabled);
15
+
16
+ // icon: INSTANCE_SWAP → QuickActionButton.Icon `as` (ForgeIcon).
17
+ // Prefer metadata.props.componentName from the icon Code Connect template.
18
+ const iconResult = instance.getInstanceSwap('icon')?.executeTemplate();
19
+ const iconName = iconResult?.metadata?.props?.componentName;
20
+ const iconSnippet = iconName ?? iconResult?.example;
21
+ const iconImports = iconName ? [`import { ${iconName} } from '@cdx-ui/icons'`] : [];
22
+ const labelText = instance.findText('{label}').textContent;
23
+ export default {
24
+ id: 'quick-action-button',
25
+ imports: ["import { QuickActionButton } from '@cdx-ui/components'", ...iconImports],
26
+ example: figma.code`
27
+ <QuickActionButton${isDisabledProp}>
28
+ <QuickActionButton.Icon as={${iconSnippet}} />
29
+ <QuickActionButton.Label>${labelText}</QuickActionButton.Label>
30
+ </QuickActionButton>`
31
+ };
32
+ //# sourceMappingURL=QuickActionButton.figma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["figma","instance","selectedInstance","isDisabled","getEnum","true","false","undefined","isDisabledProp","helpers","react","renderProp","iconResult","getInstanceSwap","executeTemplate","iconName","metadata","props","componentName","iconSnippet","example","iconImports","labelText","findText","textContent","id","imports","code"],"sourceRoot":"../../../src","sources":["figma/QuickActionButton.figma.ts"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,MAAMC,QAAQ,GAAGD,KAAK,CAACE,gBAAgB;;AAEvC;AACA,MAAMC,UAAU,GAAGF,QAAQ,CAACG,OAAO,CAAC,YAAY,EAAE;EAChDC,IAAI,EAAE,IAAI;EACVC,KAAK,EAAEC;AACT,CAAC,CAAC;AACF,MAAMC,cAAc,GAAGR,KAAK,CAACS,OAAO,CAACC,KAAK,CAACC,UAAU,CAAC,YAAY,EAAER,UAAU,CAAC;;AAE/E;AACA;AACA,MAAMS,UAAU,GAAGX,QAAQ,CAACY,eAAe,CAAC,MAAM,CAAC,EAAEC,eAAe,CAAC,CAAC;AACtE,MAAMC,QAAQ,GAAGH,UAAU,EAAEI,QAAQ,EAAEC,KAAK,EAAEC,aAAmC;AACjF,MAAMC,WAAW,GAAGJ,QAAQ,IAAIH,UAAU,EAAEQ,OAAO;AAEnD,MAAMC,WAAW,GAAGN,QAAQ,GAAG,CAAC,YAAYA,QAAQ,yBAAyB,CAAC,GAAG,EAAE;AAEnF,MAAMO,SAAS,GAAIrB,QAAQ,CAACsB,QAAQ,CAAC,SAAS,CAAC,CAAgCC,WAAW;AAE1F,eAAe;EACbC,EAAE,EAAE,qBAAqB;EACzBC,OAAO,EAAE,CAAC,wDAAwD,EAAE,GAAGL,WAAW,CAAC;EACnFD,OAAO,EAAEpB,KAAK,CAAC2B,IAAI;AACrB,oBAAoBnB,cAAc;AAClC,gCAAgCW,WAAW;AAC3C,6BAA6BG,SAAS;AACtC;AACA,CAAC","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ import React, { type ReactNode } from 'react';
2
+ import { Text, View, type TextProps, type ViewProps } from 'react-native';
3
+ import type { ForgeIcon } from '@cdx-ui/icons';
4
+ import { type IconProps } from '../Icon';
5
+ import { type AlertSeverity, type AlertVariantProps } from './styles';
6
+ export interface AlertProps extends ViewProps, AlertVariantProps {
7
+ /**
8
+ * Replace the root element with the consumer's child element via `Slot`.
9
+ * When `true`, children are rendered as-is (no automatic icon/text/actions
10
+ * layout splitting). Severity context is still provided so sub-components
11
+ * receive the correct styles.
12
+ */
13
+ asChild?: boolean;
14
+ /** Severity level that controls background colour, icon, and live-region urgency. */
15
+ severity?: AlertSeverity;
16
+ className?: string;
17
+ /**
18
+ * Sub-components (`Alert.Icon`, `Alert.Title`, `Alert.Description`,
19
+ * `Alert.Actions`) must be rendered as **direct** children — wrapping them
20
+ * in HOCs or `memo()` will break the automatic layout splitting.
21
+ */
22
+ children?: ReactNode;
23
+ }
24
+ declare const AlertRoot: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<View>>;
25
+ export interface AlertIconProps extends Omit<IconProps, 'as'> {
26
+ asChild?: boolean;
27
+ /**
28
+ * Override the auto-rendered severity icon. Omit to use the default icon for
29
+ * the current severity (EmergencyHome, Warning, CheckCircle, or Info).
30
+ * Not required when `asChild` is set.
31
+ */
32
+ as?: ForgeIcon;
33
+ }
34
+ declare const AlertIconComponent: React.ForwardRefExoticComponent<AlertIconProps & React.RefAttributes<View>>;
35
+ export interface AlertTitleProps extends TextProps {
36
+ asChild?: boolean;
37
+ className?: string;
38
+ children?: ReactNode;
39
+ }
40
+ declare const AlertTitle: React.ForwardRefExoticComponent<AlertTitleProps & React.RefAttributes<Text>>;
41
+ export interface AlertDescriptionProps extends TextProps {
42
+ asChild?: boolean;
43
+ className?: string;
44
+ children?: ReactNode;
45
+ }
46
+ declare const AlertDescription: React.ForwardRefExoticComponent<AlertDescriptionProps & React.RefAttributes<Text>>;
47
+ export interface AlertActionsProps extends ViewProps {
48
+ /**
49
+ * Replace the wrapper element with the consumer's child via `Slot`.
50
+ * **Note:** when `true`, automatic `color={severity}` injection on
51
+ * direct `Button`/`IconButton` children is bypassed — the consumer
52
+ * must set `color` explicitly.
53
+ */
54
+ asChild?: boolean;
55
+ className?: string;
56
+ children?: ReactNode;
57
+ }
58
+ declare const AlertActions: React.ForwardRefExoticComponent<AlertActionsProps & React.RefAttributes<View>>;
59
+ type AlertCompoundComponent = typeof AlertRoot & {
60
+ Icon: typeof AlertIconComponent;
61
+ Title: typeof AlertTitle;
62
+ Description: typeof AlertDescription;
63
+ Actions: typeof AlertActions;
64
+ };
65
+ export declare const Alert: AlertCompoundComponent;
66
+ export type { AlertVariantProps, AlertSeverity };
67
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Alert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAQL,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AA6BlB,MAAM,WAAW,UAAW,SAAQ,SAAS,EAAE,iBAAiB;IAC9D;;;;;OAKG;I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AAO,MAAM,KAAK,EAKZ,sBAAsB,CAAC;AAE7B,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ export type AlertSeverity = 'danger' | 'warning' | 'success' | 'info';
3
+ export declare const alertRootVariants: (props?: ({
4
+ severity?: "danger" | "warning" | "success" | "info" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ export declare const alertIconVariants: (props?: ({
7
+ severity?: "danger" | "warning" | "success" | "info" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ export declare const alertBodyVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
10
+ export declare const alertTextVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
11
+ export declare const alertTitleVariants: (props?: ({
12
+ severity?: "danger" | "warning" | "success" | "info" | null | undefined;
13
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
14
+ export declare const alertDescriptionVariants: (props?: ({
15
+ severity?: "danger" | "warning" | "success" | "info" | null | undefined;
16
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
17
+ export declare const alertActionsVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
18
+ export type AlertVariantProps = VariantProps<typeof alertRootVariants>;
19
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Alert/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAItE,eAAO,MAAM,iBAAiB;;8EAe7B,CAAC;AAIF,eAAO,MAAM,iBAAiB;;8EAY5B,CAAC;AAIH,eAAO,MAAM,iBAAiB,oFAAqD,CAAC;AAIpF,eAAO,MAAM,iBAAiB,oFAAmD,CAAC;AAIlF,eAAO,MAAM,kBAAkB;;8EAY7B,CAAC;AAIH,eAAO,MAAM,wBAAwB;;8EAYnC,CAAC;AAIH,eAAO,MAAM,oBAAoB,oFAAgE,CAAC;AAIlG,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -1,19 +1,19 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  export declare const buttonRootVariants: (props?: ({
3
3
  variant?: "solid" | "outline" | "ghost" | null | undefined;
4
- color?: "action" | "danger" | "warning" | "success" | "info" | null | undefined;
4
+ color?: "danger" | "warning" | "success" | "info" | "action" | null | undefined;
5
5
  size?: "small" | "default" | null | undefined;
6
6
  fullWidth?: boolean | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  export declare const buttonTextVariants: (props?: ({
9
9
  variant?: "solid" | "outline" | "ghost" | null | undefined;
10
- color?: "action" | "danger" | "warning" | "success" | "info" | null | undefined;
10
+ color?: "danger" | "warning" | "success" | "info" | "action" | null | undefined;
11
11
  size?: "small" | "default" | null | undefined;
12
12
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
13
  export declare const buttonSpinnerVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
14
14
  export declare const buttonSpinnerColorVariants: (props?: ({
15
15
  variant?: "solid" | "outline" | "ghost" | null | undefined;
16
- color?: "action" | "danger" | "warning" | "success" | "info" | null | undefined;
16
+ color?: "danger" | "warning" | "success" | "info" | "action" | null | undefined;
17
17
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
18
18
  export declare const buttonGroupVariants: (props?: ({
19
19
  flexDirection?: "row" | "column" | "row-reverse" | "column-reverse" | null | undefined;
@@ -21,7 +21,7 @@ export declare const buttonGroupVariants: (props?: ({
21
21
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
22
22
  export declare const buttonIconVariants: (props?: ({
23
23
  variant?: "solid" | "outline" | "ghost" | null | undefined;
24
- color?: "action" | "danger" | "warning" | "success" | "info" | null | undefined;
24
+ color?: "danger" | "warning" | "success" | "info" | "action" | null | undefined;
25
25
  size?: "small" | "default" | null | undefined;
26
26
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
27
27
  export type ButtonVariantProps = VariantProps<typeof buttonRootVariants>;
@@ -1,17 +1,17 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  export declare const chipRootVariants: (props?: ({
3
3
  variant?: "outline" | "tint" | null | undefined;
4
- color?: "action" | "danger" | "warning" | "success" | "info" | "default" | null | undefined;
4
+ color?: "danger" | "warning" | "success" | "info" | "default" | "action" | null | undefined;
5
5
  size?: "small" | "default" | "xsmall" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export declare const chipLabelVariants: (props?: ({
8
8
  variant?: "outline" | "tint" | null | undefined;
9
- color?: "action" | "danger" | "warning" | "success" | "info" | "default" | null | undefined;
9
+ color?: "danger" | "warning" | "success" | "info" | "default" | "action" | null | undefined;
10
10
  size?: "small" | "default" | "xsmall" | null | undefined;
11
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
12
  export declare const chipIconVariants: (props?: ({
13
13
  size?: "small" | "default" | "xsmall" | null | undefined;
14
- color?: "action" | "danger" | "warning" | "success" | "info" | "default" | null | undefined;
14
+ color?: "danger" | "warning" | "success" | "info" | "default" | "action" | null | undefined;
15
15
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
16
  export declare const chipAvatarVariants: (props?: ({
17
17
  size?: "small" | "default" | "xsmall" | null | undefined;
@@ -1,7 +1,7 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  export declare const iconButtonRootVariants: (props?: ({
3
3
  variant?: "solid" | "ghost" | "tint" | null | undefined;
4
- color?: "action" | "danger" | "neutral" | null | undefined;
4
+ color?: "danger" | "action" | "neutral" | null | undefined;
5
5
  size?: "small" | "default" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export declare const iconButtonGlyphVariants: (props?: ({
@@ -9,7 +9,7 @@ export declare const iconButtonGlyphVariants: (props?: ({
9
9
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
10
  export declare const iconButtonIconColorVariants: (props?: ({
11
11
  variant?: "solid" | "ghost" | "tint" | null | undefined;
12
- color?: "action" | "danger" | "neutral" | null | undefined;
12
+ color?: "danger" | "action" | "neutral" | null | undefined;
13
13
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
14
14
  export type IconButtonVariantProps = VariantProps<typeof iconButtonRootVariants>;
15
15
  //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1,41 @@
1
+ import { type ReactNode } from 'react';
2
+ import { Text, View, type PressableProps, type TextProps, type ViewProps } from 'react-native';
3
+ import { type IButtonProps } from '@cdx-ui/primitives';
4
+ import type { ForgeIcon } from '@cdx-ui/icons';
5
+ import { type IconProps } from '../Icon';
6
+ import { type QuickActionButtonVariantProps } from './styles';
7
+ export interface QuickActionButtonProps extends PressableProps, IButtonProps {
8
+ className?: string;
9
+ children?: ReactNode;
10
+ }
11
+ declare const QuickActionButtonRoot: import("react").ForwardRefExoticComponent<QuickActionButtonProps & import("react").RefAttributes<View>>;
12
+ export interface QuickActionButtonIndicatorProps extends ViewProps {
13
+ className?: string;
14
+ children?: ReactNode;
15
+ }
16
+ declare const QuickActionButtonIndicator: import("react").ForwardRefExoticComponent<QuickActionButtonIndicatorProps & import("react").RefAttributes<View>>;
17
+ export interface QuickActionButtonIconProps {
18
+ /** Forge icon component to render inside the circular indicator. */
19
+ as: ForgeIcon;
20
+ /** Applied to the icon glyph, not the indicator circle. */
21
+ className?: IconProps['className'];
22
+ /** Applied to the indicator circle wrapper. */
23
+ indicatorClassName?: string;
24
+ }
25
+ declare function QuickActionButtonIcon({ as: IconComponent, className, indicatorClassName, }: QuickActionButtonIconProps): import("react/jsx-runtime").JSX.Element;
26
+ declare namespace QuickActionButtonIcon {
27
+ var displayName: string;
28
+ }
29
+ export interface QuickActionButtonLabelProps extends TextProps {
30
+ className?: string;
31
+ children?: ReactNode;
32
+ }
33
+ declare const QuickActionButtonLabel: import("react").ForwardRefExoticComponent<QuickActionButtonLabelProps & import("react").RefAttributes<Text>>;
34
+ type QuickActionButtonCompoundComponent = typeof QuickActionButtonRoot & {
35
+ Indicator: typeof QuickActionButtonIndicator;
36
+ Icon: typeof QuickActionButtonIcon;
37
+ Label: typeof QuickActionButtonLabel;
38
+ };
39
+ export declare const QuickActionButton: QuickActionButtonCompoundComponent;
40
+ export type { QuickActionButtonVariantProps };
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/QuickActionButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/F,OAAO,EAIL,KAAK,YAAY,EAElB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAKL,KAAK,6BAA6B,EACnC,MAAM,UAAU,CAAC;AAMlB,MAAM,WAAW,sBAAuB,SAAQ,cAAc,EAAE,YAAY;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,qBAAqB,yGAa1B,CAAC;AASF,MAAM,WAAW,+BAAgC,SAAQ,SAAS;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,0BAA0B,kHAyB/B,CAAC;AASF,MAAM,WAAW,0BAA0B;IACzC,oEAAoE;IACpE,EAAE,EAAE,SAAS,CAAC;IACd,2DAA2D;IAC3D,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,+CAA+C;IAC/C,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,iBAAS,qBAAqB,CAAC,EAC7B,EAAE,EAAE,aAAa,EACjB,SAAS,EACT,kBAAkB,GACnB,EAAE,0BAA0B,2CAM5B;kBAVQ,qBAAqB;;;AAiB9B,MAAM,WAAW,2BAA4B,SAAQ,SAAS;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,sBAAsB,8GAoB3B,CAAC;AAOF,KAAK,kCAAkC,GAAG,OAAO,qBAAqB,GAAG;IACvE,SAAS,EAAE,OAAO,0BAA0B,CAAC;IAC7C,IAAI,EAAE,OAAO,qBAAqB,CAAC;IACnC,KAAK,EAAE,OAAO,sBAAsB,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAIxB,kCAAkC,CAAC;AAEzC,YAAY,EAAE,6BAA6B,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ export declare const quickActionButtonRootVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
3
+ export declare const quickActionButtonIndicatorVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
4
+ export declare const quickActionButtonGlyphVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
5
+ export declare const quickActionButtonLabelVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
6
+ export type QuickActionButtonVariantProps = VariantProps<typeof quickActionButtonRootVariants>;
7
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/QuickActionButton/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,6BAA6B,oFAKxC,CAAC;AAEH,eAAO,MAAM,kCAAkC,oFAmB7C,CAAC;AAEH,eAAO,MAAM,8BAA8B,oFAAyC,CAAC;AAErF,eAAO,MAAM,8BAA8B,oFAKzC,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,YAAY,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
2
  export declare const tileGroupVariants: (props?: ({
3
3
  direction?: "row" | "column" | null | undefined;
4
- spacing?: "default" | "none" | null | undefined;
4
+ spacing?: "none" | "default" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  export type TileGroupVariantProps = VariantProps<typeof tileGroupVariants>;
7
7
  export declare const tileRootVariants: (props?: ({
@@ -1,3 +1,4 @@
1
+ export * from './Alert';
1
2
  export * from './AlertDialog';
2
3
  export * from './Avatar';
3
4
  export * from './BottomSheet';
@@ -28,4 +29,5 @@ export * from './Heading';
28
29
  export * from './Text';
29
30
  export * from './Icon';
30
31
  export * from './IconButton';
32
+ export * from './QuickActionButton';
31
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CA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