@dynamic-labs-sdk/droplet 1.50.0 → 1.52.0

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 (106) hide show
  1. package/README.md +0 -1
  2. package/dist/components/copy-button/copy-button.d.ts +3 -1
  3. package/dist/components/copy-button/copy-button.d.ts.map +1 -1
  4. package/dist/components/copy-button/copy-button.stories.d.ts +1 -1
  5. package/dist/components/toggle-card/toggle-card.d.ts +10 -0
  6. package/dist/components/toggle-card/toggle-card.d.ts.map +1 -1
  7. package/dist/components/toggle-card/toggle-card.stories.d.ts +5 -0
  8. package/dist/components/toggle-card/toggle-card.stories.d.ts.map +1 -1
  9. package/dist/components/toggle-row/toggle-row.d.ts +22 -1
  10. package/dist/components/toggle-row/toggle-row.d.ts.map +1 -1
  11. package/dist/components/toggle-row/toggle-row.stories.d.ts +10 -6
  12. package/dist/components/toggle-row/toggle-row.stories.d.ts.map +1 -1
  13. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
  14. package/dist/components/ui/combobox/combobox.d.ts +54 -12
  15. package/dist/components/ui/combobox/combobox.d.ts.map +1 -1
  16. package/dist/components/ui/combobox/combobox.stories.d.ts +12 -1
  17. package/dist/components/ui/combobox/combobox.stories.d.ts.map +1 -1
  18. package/dist/components/ui/field/field-control-context.d.ts +20 -0
  19. package/dist/components/ui/field/field-control-context.d.ts.map +1 -0
  20. package/dist/components/ui/field/field.d.ts +24 -4
  21. package/dist/components/ui/field/field.d.ts.map +1 -1
  22. package/dist/components/ui/field/field.stories.d.ts +26 -6
  23. package/dist/components/ui/field/field.stories.d.ts.map +1 -1
  24. package/dist/components/ui/field/use-field-feedback.d.ts +25 -0
  25. package/dist/components/ui/field/use-field-feedback.d.ts.map +1 -0
  26. package/dist/components/ui/label/label.d.ts +15 -0
  27. package/dist/components/ui/label/label.d.ts.map +1 -1
  28. package/dist/components/ui/select/select.d.ts.map +1 -1
  29. package/dist/components/ui/select/select.stories.d.ts.map +1 -1
  30. package/dist/components/ui/table/table.d.ts +7 -1
  31. package/dist/components/ui/table/table.d.ts.map +1 -1
  32. package/dist/components/ui/well/index.d.ts +1 -1
  33. package/dist/components/ui/well/index.d.ts.map +1 -1
  34. package/dist/components/ui/well/well-reveal.stories.d.ts.map +1 -1
  35. package/dist/components/ui/well/well.d.ts +18 -3
  36. package/dist/components/ui/well/well.d.ts.map +1 -1
  37. package/dist/components/ui/well/well.stories.d.ts +1 -9
  38. package/dist/components/ui/well/well.stories.d.ts.map +1 -1
  39. package/dist/index.cjs +995 -407
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.ts +1 -2
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.esm.js +796 -205
  44. package/dist/index.esm.js.map +1 -1
  45. package/package.json +1 -6
  46. package/src/styles/globals.css +11 -15
  47. package/dist/components/migration/banner/banner.d.ts +0 -24
  48. package/dist/components/migration/banner/banner.d.ts.map +0 -1
  49. package/dist/components/migration/banner/banner.stories.d.ts +0 -39
  50. package/dist/components/migration/banner/banner.stories.d.ts.map +0 -1
  51. package/dist/components/migration/banner/index.d.ts +0 -2
  52. package/dist/components/migration/banner/index.d.ts.map +0 -1
  53. package/dist/components/migration/double-section/double-section.d.ts +0 -29
  54. package/dist/components/migration/double-section/double-section.d.ts.map +0 -1
  55. package/dist/components/migration/double-section/double-section.stories.d.ts +0 -32
  56. package/dist/components/migration/double-section/double-section.stories.d.ts.map +0 -1
  57. package/dist/components/migration/double-section/index.d.ts +0 -2
  58. package/dist/components/migration/double-section/index.d.ts.map +0 -1
  59. package/dist/components/migration/field/field.d.ts +0 -19
  60. package/dist/components/migration/field/field.d.ts.map +0 -1
  61. package/dist/components/migration/field/field.stories.d.ts +0 -43
  62. package/dist/components/migration/field/field.stories.d.ts.map +0 -1
  63. package/dist/components/migration/field/index.d.ts +0 -2
  64. package/dist/components/migration/field/index.d.ts.map +0 -1
  65. package/dist/components/migration/index.d.ts +0 -16
  66. package/dist/components/migration/index.d.ts.map +0 -1
  67. package/dist/components/migration/settings-section-v2/index.d.ts +0 -2
  68. package/dist/components/migration/settings-section-v2/index.d.ts.map +0 -1
  69. package/dist/components/migration/settings-section-v2/settings-section-v2.d.ts +0 -45
  70. package/dist/components/migration/settings-section-v2/settings-section-v2.d.ts.map +0 -1
  71. package/dist/components/migration/settings-section-v2/settings-section-v2.stories.d.ts +0 -40
  72. package/dist/components/migration/settings-section-v2/settings-section-v2.stories.d.ts.map +0 -1
  73. package/dist/components/migration/sub-section/index.d.ts +0 -2
  74. package/dist/components/migration/sub-section/index.d.ts.map +0 -1
  75. package/dist/components/migration/sub-section/sub-section.d.ts +0 -26
  76. package/dist/components/migration/sub-section/sub-section.d.ts.map +0 -1
  77. package/dist/components/migration/sub-section/sub-section.stories.d.ts +0 -33
  78. package/dist/components/migration/sub-section/sub-section.stories.d.ts.map +0 -1
  79. package/dist/components/migration/toggle-group/index.d.ts +0 -2
  80. package/dist/components/migration/toggle-group/index.d.ts.map +0 -1
  81. package/dist/components/migration/toggle-group/toggle-group.d.ts +0 -22
  82. package/dist/components/migration/toggle-group/toggle-group.d.ts.map +0 -1
  83. package/dist/components/migration/toggle-group/toggle-group.stories.d.ts +0 -30
  84. package/dist/components/migration/toggle-group/toggle-group.stories.d.ts.map +0 -1
  85. package/dist/components/patterns/config-tab-with-pill/config-tab-with-pill.stories.d.ts +0 -17
  86. package/dist/components/patterns/config-tab-with-pill/config-tab-with-pill.stories.d.ts.map +0 -1
  87. package/dist/components/patterns/cors-list/cors-list.stories.d.ts +0 -17
  88. package/dist/components/patterns/cors-list/cors-list.stories.d.ts.map +0 -1
  89. package/dist/components/patterns/rounded-row-list/rounded-row-list.stories.d.ts +0 -17
  90. package/dist/components/patterns/rounded-row-list/rounded-row-list.stories.d.ts.map +0 -1
  91. package/dist/components/status-badge/index.d.ts +0 -2
  92. package/dist/components/status-badge/index.d.ts.map +0 -1
  93. package/dist/components/status-badge/status-badge.d.ts +0 -10
  94. package/dist/components/status-badge/status-badge.d.ts.map +0 -1
  95. package/dist/components/status-badge/status-badge.stories.d.ts +0 -24
  96. package/dist/components/status-badge/status-badge.stories.d.ts.map +0 -1
  97. package/dist/components/ui/flush-card-detach/flush-card-detach.stories.d.ts +0 -17
  98. package/dist/components/ui/flush-card-detach/flush-card-detach.stories.d.ts.map +0 -1
  99. package/dist/migration.cjs +0 -328
  100. package/dist/migration.cjs.map +0 -1
  101. package/dist/migration.esm.js +0 -322
  102. package/dist/migration.esm.js.map +0 -1
  103. package/dist/toggle-row-BBTk7_bT.cjs +0 -408
  104. package/dist/toggle-row-BBTk7_bT.cjs.map +0 -1
  105. package/dist/toggle-row-PqelNVXI.esm.js +0 -360
  106. package/dist/toggle-row-PqelNVXI.esm.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs-sdk/droplet",
3
- "version": "1.50.0",
3
+ "version": "1.52.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.esm.js",
@@ -12,11 +12,6 @@
12
12
  "import": "./dist/index.esm.js",
13
13
  "default": "./dist/index.cjs"
14
14
  },
15
- "./migration": {
16
- "types": "./dist/components/migration/index.d.ts",
17
- "import": "./dist/migration.esm.js",
18
- "default": "./dist/migration.cjs"
19
- },
20
15
  "./styles/globals.css": "./src/styles/globals.css"
21
16
  },
22
17
  "files": [
@@ -98,19 +98,6 @@
98
98
  --shadow-elevated: var(--shadow-elevated);
99
99
  --shadow-input-hover: var(--shadow-input-hover);
100
100
  --shadow-card-content: var(--shadow-card-content);
101
-
102
- /* Gap between the rows of a field: its control, description and error. */
103
- --spacing-field-gap: 6px;
104
-
105
- /* Separation between a field's label and its control.
106
-
107
- 10px, not the conventional 8: the label is 14px with `leading-none`, so its box hugs the
108
- glyphs and this gap is the only separation there is. ~0.7x the label's font size is what
109
- reads as deliberate at that leading.
110
-
111
- Tokenised rather than inlined so every field moves together and the value stays tunable in
112
- one place. */
113
- --spacing-label-gap: 10px;
114
101
  }
115
102
 
116
103
  /* ═══════════════════════════════════════════════════════════
@@ -527,7 +514,9 @@
527
514
  to { stroke-dashoffset: 0; }
528
515
  }
529
516
 
530
- [data-slot='checkbox-indicator'] path {
517
+ /* The copy button's check reuses the same draw-on, so a confirmed copy reads like a checked box. */
518
+ [data-slot='checkbox-indicator'] path,
519
+ [data-slot='copy-button-check'] path {
531
520
  stroke-dasharray: 1;
532
521
  stroke-dashoffset: 1;
533
522
  transition: stroke-dashoffset 120ms ease-out;
@@ -535,7 +524,8 @@
535
524
 
536
525
  /* The minus of an indeterminate checkbox draws on like the check; without it the path stays hidden at offset 1. */
537
526
  [data-slot='checkbox-indicator'][data-state='checked'] path,
538
- [data-slot='checkbox-indicator'][data-state='indeterminate'] path {
527
+ [data-slot='checkbox-indicator'][data-state='indeterminate'] path,
528
+ [data-slot='copy-button-check'][data-state='checked'] path {
539
529
  stroke-dashoffset: 0;
540
530
  animation: draw-check 250ms ease-out;
541
531
  }
@@ -561,6 +551,12 @@
561
551
  opacity: 1;
562
552
  }
563
553
 
554
+ /* A Combobox option's checkbox ignores the pointer, so it takes the hover
555
+ fill from its highlighted row (pointer or keyboard) instead. */
556
+ [data-slot='command-item'][data-selected='true'] > [data-slot='checkbox'][data-state='unchecked']::before {
557
+ opacity: 1;
558
+ }
559
+
564
560
  /* ═══════════════════════════════════════════════════════════
565
561
  Radio hover dot
566
562
  ═══════════════════════════════════════════════════════════ */
@@ -1,24 +0,0 @@
1
- import { type ReactElement, type ReactNode } from 'react';
2
- export type BannerVariant = 'info' | 'warning' | 'error' | 'success' | 'advance';
3
- export type BannerProps = {
4
- action?: {
5
- onClick: () => void;
6
- text: string;
7
- };
8
- children: ReactNode;
9
- className?: string;
10
- dismissible?: boolean;
11
- onDismiss?: () => void;
12
- variant?: BannerVariant;
13
- };
14
- /**
15
- * 5-variant banner: `info` | `warning` | `error` | `success` | `advance`.
16
- * Inline icon + text + optional action button + optional close.
17
- *
18
- * Distinct from the canonical single-variant `InfoBanner`. The canonical
19
- * replacement may simply extend `InfoBanner` with semantic variants.
20
- *
21
- * @deprecated Migration-aid only. Replace with canonical version when available.
22
- */
23
- export declare const Banner: ({ action, children, className, dismissible, onDismiss, variant, }: BannerProps) => ReactElement | null;
24
- //# sourceMappingURL=banner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/banner/banner.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAYpE,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,SAAS,GACT,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/C,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AAwCF;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,sEAOhB,WAAW,KAAG,YAAY,GAAG,IAsD/B,CAAC"}
@@ -1,39 +0,0 @@
1
- /**
2
- * MIGRATION-AID — temporary composite added to unblock the redcoast
3
- * Northstar→droplet dashboard migration. NOT canonical. Will be replaced
4
- * by the design team's finalized version.
5
- *
6
- * Tracking: https://github.com/dynamic-labs/redcoast/blob/main/MIGRATION-PLAN.md
7
- */
8
- import type { StoryObj } from '@storybook/react-vite';
9
- declare const meta: {
10
- args: {
11
- children: string;
12
- };
13
- argTypes: {
14
- dismissible: {
15
- control: "boolean";
16
- };
17
- variant: {
18
- control: "inline-radio";
19
- options: string[];
20
- };
21
- };
22
- component: ({ action, children, className, dismissible, onDismiss, variant, }: import("./banner").BannerProps) => import("react").ReactElement | null;
23
- parameters: {
24
- layout: string;
25
- };
26
- tags: string[];
27
- title: string;
28
- };
29
- export default meta;
30
- type Story = StoryObj<typeof meta>;
31
- export declare const Info: Story;
32
- export declare const Warning: Story;
33
- export declare const Error: Story;
34
- export declare const Success: Story;
35
- export declare const Advance: Story;
36
- export declare const WithAction: Story;
37
- export declare const Dismissible: Story;
38
- export declare const AllFiveStacked: Story;
39
- //# sourceMappingURL=banner.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"banner.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/banner/banner.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAeqB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,IAAI,EAAE,KAOlB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAOzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAW5B,CAAC"}
@@ -1,2 +0,0 @@
1
- export { Banner, type BannerProps, type BannerVariant } from './banner';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/banner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -1,29 +0,0 @@
1
- /**
2
- * MIGRATION-AID — temporary composite added to unblock the redcoast
3
- * Northstar→droplet dashboard migration. NOT canonical. Will be replaced
4
- * by the design team's finalized version. Do not adopt for new droplet
5
- * projects; use the canonical droplet primitives directly instead.
6
- *
7
- * Tracking: https://github.com/dynamic-labs/redcoast/blob/main/MIGRATION-PLAN.md
8
- */
9
- import { type ReactElement, type ReactNode } from 'react';
10
- type SectionItem = {
11
- badge?: ReactNode;
12
- children: ReactNode;
13
- description?: string;
14
- id: string;
15
- title: ReactNode;
16
- };
17
- export type DoubleSectionProps = {
18
- className?: string;
19
- sections: [SectionItem, SectionItem];
20
- };
21
- /**
22
- * Two `SettingsSection`-like blocks side by side with a divider between them.
23
- * Common use case: "Live mode | Sandbox mode" pairs.
24
- *
25
- * @deprecated Migration-aid only. Replace with canonical version when available.
26
- */
27
- export declare const DoubleSection: ({ className, sections, }: DoubleSectionProps) => ReactElement;
28
- export {};
29
- //# sourceMappingURL=double-section.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"double-section.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/double-section/double-section.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI1D,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;CACtC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,6BAGvB,kBAAkB,KAAG,YA2BvB,CAAC"}
@@ -1,32 +0,0 @@
1
- /**
2
- * MIGRATION-AID — temporary composite added to unblock the redcoast
3
- * Northstar→droplet dashboard migration. NOT canonical. Will be replaced
4
- * by the design team's finalized version.
5
- *
6
- * Tracking: https://github.com/dynamic-labs/redcoast/blob/main/MIGRATION-PLAN.md
7
- */
8
- import type { StoryObj } from '@storybook/react-vite';
9
- declare const meta: {
10
- args: {
11
- sections: [{
12
- children: null;
13
- id: string;
14
- title: string;
15
- }, {
16
- children: null;
17
- id: string;
18
- title: string;
19
- }];
20
- };
21
- component: ({ className, sections, }: import("./double-section").DoubleSectionProps) => import("react").ReactElement;
22
- parameters: {
23
- layout: string;
24
- };
25
- tags: string[];
26
- title: string;
27
- };
28
- export default meta;
29
- type Story = StoryObj<typeof meta>;
30
- export declare const LiveAndSandbox: Story;
31
- export declare const NoBadgesNoDescriptions: Story;
32
- //# sourceMappingURL=double-section.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"double-section.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/double-section/double-section.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAO5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;CAW4B,CAAC;AAEvC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,cAAc,EAAE,KAqC5B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAmBpC,CAAC"}
@@ -1,2 +0,0 @@
1
- export { DoubleSection, type DoubleSectionProps } from './double-section';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/double-section/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,19 +0,0 @@
1
- import { type ComponentProps, type ReactElement, type ReactNode } from 'react';
2
- export type FieldProps = Omit<ComponentProps<'input'>, 'children'> & {
3
- className?: string;
4
- error?: string;
5
- helper?: ReactNode;
6
- label: string;
7
- required?: boolean;
8
- };
9
- /**
10
- * `Label` + `Input` + helper/error composite. Wires up `htmlFor`,
11
- * `aria-describedby`, and `aria-invalid` so call sites don't repeat the layout.
12
- *
13
- * The canonical version may differ in form-validation integration (RHF,
14
- * formik, native form, etc.) — keep this composite focused on layout only.
15
- *
16
- * @deprecated Migration-aid only. Replace with canonical version when available.
17
- */
18
- export declare const Field: ({ className, error, helper, label, required, id: idProp, ...inputProps }: FieldProps) => ReactElement;
19
- //# sourceMappingURL=field.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/field/field.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AAMtF,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,GAAG;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK,6EAQf,UAAU,KAAG,YA6Cf,CAAC"}
@@ -1,43 +0,0 @@
1
- /**
2
- * MIGRATION-AID — temporary composite added to unblock the redcoast
3
- * Northstar→droplet dashboard migration. NOT canonical. Will be replaced
4
- * by the design team's finalized version.
5
- *
6
- * Tracking: https://github.com/dynamic-labs/redcoast/blob/main/MIGRATION-PLAN.md
7
- */
8
- import type { StoryObj } from '@storybook/react-vite';
9
- declare const meta: {
10
- args: {
11
- label: string;
12
- placeholder: string;
13
- type: "email";
14
- };
15
- argTypes: {
16
- disabled: {
17
- control: "boolean";
18
- };
19
- error: {
20
- control: "text";
21
- };
22
- helper: {
23
- control: "text";
24
- };
25
- required: {
26
- control: "boolean";
27
- };
28
- };
29
- component: ({ className, error, helper, label, required, id: idProp, ...inputProps }: import("./field").FieldProps) => import("react").ReactElement;
30
- parameters: {
31
- layout: string;
32
- };
33
- tags: string[];
34
- title: string;
35
- };
36
- export default meta;
37
- type Story = StoryObj<typeof meta>;
38
- export declare const Default: Story;
39
- export declare const WithHelper: Story;
40
- export declare const WithError: Story;
41
- export declare const Required: Story;
42
- export declare const Disabled: Story;
43
- //# sourceMappingURL=field.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/field/field.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAOxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { Field, type FieldProps } from './field';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * MIGRATION-AID barrel — entry point for the `@dynamic-labs-sdk/droplet/migration` sub-path.
3
- *
4
- * The components re-exported below are TEMPORARY — they unblock the redcoast
5
- * Northstar→droplet dashboard migration and will be replaced by the design team's
6
- * canonical versions. See ./README.md for the lifecycle.
7
- *
8
- * Tracking: https://github.com/dynamic-labs/redcoast/blob/main/MIGRATION-PLAN.md
9
- */
10
- export { Banner, type BannerProps, type BannerVariant } from './banner';
11
- export { DoubleSection, type DoubleSectionProps } from './double-section';
12
- export { Field, type FieldProps } from './field';
13
- export { SettingsSectionV2, type SettingsSectionV2Props, } from './settings-section-v2';
14
- export { SubSection, type SubSectionProps } from './sub-section';
15
- export { ToggleGroup, type ToggleGroupProps } from './toggle-group';
16
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/migration/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { SettingsSectionV2, type SettingsSectionV2Props } from './settings-section-v2';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/settings-section-v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,45 +0,0 @@
1
- /**
2
- * MIGRATION-AID — temporary composite added to unblock the redcoast
3
- * Northstar→droplet dashboard migration. NOT canonical. Will be replaced
4
- * by the design team's finalized version. Do not adopt for new droplet
5
- * projects; use the canonical droplet `SettingsSection` directly instead.
6
- *
7
- * This is the redcoast-flavored variant of `SettingsSection` extended with
8
- * - `helpLink` (deep-link to docs)
9
- * - `alert` (inline alert slot in the header)
10
- * - `layout='split'` (opt-in 2-column variant matching Northstar's layout)
11
- *
12
- * The canonical `SettingsSection` at `../../settings-section` remains untouched
13
- * so its consumers don't pick up Northstar-flavored API.
14
- *
15
- * Tracking: https://github.com/dynamic-labs/redcoast/blob/main/MIGRATION-PLAN.md
16
- */
17
- import { type ReactElement, type ReactNode } from 'react';
18
- export type SettingsSectionV2Props = {
19
- alert?: ReactNode;
20
- children: ReactNode;
21
- className?: string;
22
- description?: string;
23
- helpLink?: {
24
- text: string;
25
- url: string;
26
- };
27
- layout?: 'stacked' | 'split';
28
- title: string;
29
- variant?: 'default' | 'danger';
30
- };
31
- /**
32
- * Card-shaped settings section with a header (title + optional description +
33
- * optional helpLink + optional alert) and a content area.
34
- *
35
- * `layout='split'` renders header on the left and content on the right (1fr
36
- * 2fr grid on `md+`). Default `'stacked'` matches the canonical
37
- * `SettingsSection`.
38
- *
39
- * `variant='danger'` tints the title red and adds a red border.
40
- *
41
- * @deprecated Migration-aid only. Replace with canonical `SettingsSection` once
42
- * the design team's finalized version supports `helpLink` / `alert` / split layout.
43
- */
44
- export declare const SettingsSectionV2: ({ alert, children, className, description, helpLink, layout, title, variant, }: SettingsSectionV2Props) => ReactElement;
45
- //# sourceMappingURL=settings-section-v2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings-section-v2.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/settings-section-v2/settings-section-v2.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI1D,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,mFAS3B,sBAAsB,KAAG,YA0D3B,CAAC"}
@@ -1,40 +0,0 @@
1
- /**
2
- * MIGRATION-AID — temporary composite added to unblock the redcoast
3
- * Northstar→droplet dashboard migration. NOT canonical. Will be replaced
4
- * by the design team's finalized version.
5
- *
6
- * Tracking: https://github.com/dynamic-labs/redcoast/blob/main/MIGRATION-PLAN.md
7
- */
8
- import type { StoryObj } from '@storybook/react-vite';
9
- declare const meta: {
10
- args: {
11
- children: null;
12
- description: string;
13
- title: string;
14
- };
15
- argTypes: {
16
- layout: {
17
- control: "inline-radio";
18
- options: string[];
19
- };
20
- variant: {
21
- control: "inline-radio";
22
- options: string[];
23
- };
24
- };
25
- component: ({ alert, children, className, description, helpLink, layout, title, variant, }: import("./settings-section-v2").SettingsSectionV2Props) => import("react").ReactElement;
26
- parameters: {
27
- layout: string;
28
- };
29
- tags: string[];
30
- title: string;
31
- };
32
- export default meta;
33
- type Story = StoryObj<typeof meta>;
34
- export declare const Stacked: Story;
35
- export declare const Split: Story;
36
- export declare const WithHelpLink: Story;
37
- export declare const WithAlert: Story;
38
- export declare const Danger: Story;
39
- export declare const SplitWithHelpLinkAndAlert: Story;
40
- //# sourceMappingURL=settings-section-v2.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings-section-v2.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/settings-section-v2/settings-section-v2.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAO5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;CAcgC,CAAC;AAE3C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAenC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAS1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KASvB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAepB,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAYvC,CAAC"}
@@ -1,2 +0,0 @@
1
- export { SubSection, type SubSectionProps } from './sub-section';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/sub-section/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC"}
@@ -1,26 +0,0 @@
1
- /**
2
- * MIGRATION-AID — temporary composite added to unblock the redcoast
3
- * Northstar→droplet dashboard migration. NOT canonical. Will be replaced
4
- * by the design team's finalized version. Do not adopt for new droplet
5
- * projects; use the canonical droplet primitives directly instead.
6
- *
7
- * Tracking: https://github.com/dynamic-labs/redcoast/blob/main/MIGRATION-PLAN.md
8
- */
9
- import { type ReactElement, type ReactNode } from 'react';
10
- export type SubSectionProps = {
11
- children: ReactNode;
12
- className?: string;
13
- description?: string;
14
- title: string;
15
- variant?: 'plain' | 'boxed';
16
- };
17
- /**
18
- * Heading + content stack, used inside an outer SettingsSection to group
19
- * sub-fields. Two variants:
20
- * - 'plain' (default): unboxed.
21
- * - 'boxed': thin-bordered card-within-a-card.
22
- *
23
- * @deprecated Migration-aid only. Replace with canonical version when available.
24
- */
25
- export declare const SubSection: ({ children, className, description, title, variant, }: SubSectionProps) => ReactElement;
26
- //# sourceMappingURL=sub-section.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sub-section.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/sub-section/sub-section.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI1D,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC7B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,0DAMpB,eAAe,KAAG,YAmCpB,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * MIGRATION-AID — temporary composite added to unblock the redcoast
3
- * Northstar→droplet dashboard migration. NOT canonical. Will be replaced
4
- * by the design team's finalized version.
5
- *
6
- * Tracking: https://github.com/dynamic-labs/redcoast/blob/main/MIGRATION-PLAN.md
7
- */
8
- import type { StoryObj } from '@storybook/react-vite';
9
- declare const meta: {
10
- args: {
11
- children: null;
12
- description: string;
13
- title: string;
14
- };
15
- argTypes: {
16
- variant: {
17
- control: "inline-radio";
18
- options: string[];
19
- };
20
- };
21
- component: ({ children, className, description, title, variant, }: import("./sub-section").SubSectionProps) => import("react").ReactElement;
22
- parameters: {
23
- layout: string;
24
- };
25
- tags: string[];
26
- title: string;
27
- };
28
- export default meta;
29
- type Story = StoryObj<typeof meta>;
30
- export declare const Plain: Story;
31
- export declare const Boxed: Story;
32
- export declare const NoDescription: Story;
33
- //# sourceMappingURL=sub-section.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sub-section.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/sub-section/sub-section.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAM5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;CAayB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,KAAK,EAAE,KAgBnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAgBnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAS3B,CAAC"}
@@ -1,2 +0,0 @@
1
- export { ToggleGroup, type ToggleGroupProps } from './toggle-group';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/toggle-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,22 +0,0 @@
1
- import { type ReactElement, type ReactNode } from 'react';
2
- import { type ToggleRowProps } from '../../toggle-row';
3
- export type ToggleGroupProps = {
4
- children?: ReactNode;
5
- className?: string;
6
- /**
7
- * All ToggleRow props for the master row. `children` of master is ignored —
8
- * pass nested rows via `children` of ToggleGroup.
9
- */
10
- master: Omit<ToggleRowProps, 'children'>;
11
- };
12
- /**
13
- * Master `ToggleRow` on top, with a vertically-indented stack of nested
14
- * sub-toggles underneath. Sub-toggles auto-hide when the master is off.
15
- *
16
- * Used for "social login → which providers" and similar grouped-toggle
17
- * patterns ported from redcoast.
18
- *
19
- * @deprecated Migration-aid only. Replace with canonical version when available.
20
- */
21
- export declare const ToggleGroup: ({ children, className, master, }: ToggleGroupProps) => ReactElement;
22
- //# sourceMappingURL=toggle-group.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/toggle-group/toggle-group.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;CAC1C,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,qCAIrB,gBAAgB,KAAG,YAarB,CAAC"}
@@ -1,30 +0,0 @@
1
- /**
2
- * MIGRATION-AID — temporary composite added to unblock the redcoast
3
- * Northstar→droplet dashboard migration. NOT canonical. Will be replaced
4
- * by the design team's finalized version. Do not adopt for new droplet
5
- * projects; use the canonical droplet primitives directly instead.
6
- *
7
- * Tracking: https://github.com/dynamic-labs/redcoast/blob/main/MIGRATION-PLAN.md
8
- */
9
- import React from 'react';
10
- import type { StoryObj } from '@storybook/react-vite';
11
- declare const meta: {
12
- args: {
13
- master: {
14
- checked: false;
15
- label: string;
16
- onCheckedChange: () => void;
17
- };
18
- };
19
- component: ({ children, className, master, }: import("./toggle-group").ToggleGroupProps) => React.ReactElement;
20
- parameters: {
21
- layout: string;
22
- };
23
- tags: string[];
24
- title: string;
25
- };
26
- export default meta;
27
- type Story = StoryObj<typeof meta>;
28
- export declare const Default: Story;
29
- export declare const MasterOff: Story;
30
- //# sourceMappingURL=toggle-group.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toggle-group.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/migration/toggle-group/toggle-group.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAM5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;CAY0B,CAAC;AAErC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAqCrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAyBvB,CAAC"}
@@ -1,17 +0,0 @@
1
- import type { StoryObj } from '@storybook/react-vite';
2
- declare const meta: {
3
- parameters: {
4
- docs: {
5
- description: {
6
- component: string;
7
- };
8
- };
9
- layout: string;
10
- };
11
- tags: string[];
12
- title: string;
13
- };
14
- export default meta;
15
- type Story = StoryObj<typeof meta>;
16
- export declare const AuthTabWithPill: Story;
17
- //# sourceMappingURL=config-tab-with-pill.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-tab-with-pill.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/patterns/config-tab-with-pill/config-tab-with-pill.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAuB5D,QAAA,MAAM,IAAI;;;;;;;;;;;CAqBM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA4BnC,eAAO,MAAM,eAAe,EAAE,KA8H7B,CAAC"}
@@ -1,17 +0,0 @@
1
- import type { StoryObj } from '@storybook/react-vite';
2
- declare const meta: {
3
- parameters: {
4
- docs: {
5
- description: {
6
- component: string;
7
- };
8
- };
9
- layout: string;
10
- };
11
- tags: string[];
12
- title: string;
13
- };
14
- export default meta;
15
- type Story = StoryObj<typeof meta>;
16
- export declare const AllowedOrigins: Story;
17
- //# sourceMappingURL=cors-list.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cors-list.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/patterns/cors-list/cors-list.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAM5D,QAAA,MAAM,IAAI;;;;;;;;;;;CAeM,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,cAAc,EAAE,KAiC5B,CAAC"}