@veevarts/design-system 1.17.0-alpha.1 → 1.17.0-alpha.2

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 (34) hide show
  1. package/dist/index.cjs +10 -4
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +3995 -3646
  4. package/dist/patterns/AdminTable/AdminTable.d.ts +42 -0
  5. package/dist/patterns/AdminTable/index.d.ts +3 -0
  6. package/dist/patterns/AdminTable/styles.d.ts +34 -0
  7. package/dist/patterns/AdminTextField/AdminTextField.d.ts +39 -0
  8. package/dist/patterns/AdminTextField/index.d.ts +3 -0
  9. package/dist/patterns/AdminTextField/styles.d.ts +35 -0
  10. package/dist/patterns/AdminToolbar/AdminToolbar.d.ts +18 -0
  11. package/dist/patterns/AdminToolbar/index.d.ts +2 -0
  12. package/dist/patterns/DimensionChip/index.d.ts +13 -2
  13. package/dist/patterns/{DimensionChip/DimensionChip.d.ts → KeyValueChip/KeyValueChip.d.ts} +4 -4
  14. package/dist/patterns/KeyValueChip/index.d.ts +2 -0
  15. package/dist/patterns/PaginationSummary/PaginationSummary.d.ts +26 -0
  16. package/dist/patterns/PaginationSummary/index.d.ts +3 -0
  17. package/dist/patterns/PaginationSummary/page-range.d.ts +19 -0
  18. package/dist/patterns/PickerRow/PickerRow.d.ts +27 -0
  19. package/dist/patterns/PickerRow/index.d.ts +2 -0
  20. package/dist/patterns/RowActions/RowActions.d.ts +17 -0
  21. package/dist/patterns/RowActions/index.d.ts +2 -0
  22. package/dist/patterns/TableSkeleton/TableSkeleton.d.ts +32 -0
  23. package/dist/patterns/TableSkeleton/index.d.ts +2 -0
  24. package/dist/patterns/UnderlineTabs/UnderlineTabs.d.ts +18 -0
  25. package/dist/patterns/UnderlineTabs/index.d.ts +2 -0
  26. package/dist/patterns/grid-columns.d.ts +1 -1
  27. package/dist/patterns/index.d.ts +18 -2
  28. package/dist/tailwind/index.d.ts +4 -0
  29. package/dist/tailwind/index.js +68 -1
  30. package/dist/tokens/admin-surface.d.ts +58 -0
  31. package/dist/tokens/index.d.ts +2 -0
  32. package/package.json +1 -1
  33. package/dist/patterns/CheckboxCardGroup/CheckboxCardGroup.d.ts +0 -53
  34. package/dist/patterns/CheckboxCardGroup/index.d.ts +0 -2
@@ -1,53 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface CheckboxCardOption {
3
- /** Stable identifier surfaced through `onChange`. */
4
- key: string;
5
- /** Visible label. */
6
- label: string;
7
- /** Optional secondary line under the label. */
8
- description?: string;
9
- /** Iconify name (`'solar:ticket-outline'`) or a custom node. */
10
- icon?: string | React.ReactNode;
11
- /** Disable just this card. */
12
- isDisabled?: boolean;
13
- /** Override per-card test id; defaults to `${dataTestId}-${key}`. */
14
- 'data-testid'?: string;
15
- }
16
- export interface CheckboxCardGroupClassNames {
17
- base?: string;
18
- grid?: string;
19
- card?: string;
20
- hint?: string;
21
- }
22
- export interface CheckboxCardGroupProps {
23
- /** Options to render in order. */
24
- options: readonly CheckboxCardOption[];
25
- /** Currently selected option keys. */
26
- selectedKeys: readonly string[];
27
- /** Fires with the next full selection whenever a card is toggled. Keys are emitted in the original option order (not selection order); any selected key not present in `options` is preserved. */
28
- onChange: (keys: string[]) => void;
29
- /** Optional heading rendered above the grid (labels the group). */
30
- heading?: string;
31
- /** `aria-label` for the group when `heading` is omitted. Default `'Select options'`. */
32
- ariaLabel?: string;
33
- /** Grid columns on >= sm. Default `2`. */
34
- columnsDesktop?: 2 | 3 | 4;
35
- /** Grid columns on mobile. Default `1`. */
36
- columnsMobile?: 1 | 2;
37
- /**
38
- * Minimum number of selections. When set, the group auto-derives its
39
- * invalid state (`selectedKeys.length < minSelected`) and a default hint,
40
- * unless `isInvalid` / `hint` are explicitly supplied.
41
- */
42
- minSelected?: number;
43
- /** Helper text under the grid. Overrides the `minSelected` default hint. */
44
- hint?: React.ReactNode;
45
- /** Error styling + `aria-invalid`. Overrides the `minSelected`-derived state. */
46
- isInvalid?: boolean;
47
- /** Disable every card. */
48
- isDisabled?: boolean;
49
- className?: string;
50
- classNames?: CheckboxCardGroupClassNames;
51
- 'data-testid'?: string;
52
- }
53
- export declare const CheckboxCardGroup: React.FC<CheckboxCardGroupProps>;
@@ -1,2 +0,0 @@
1
- export { CheckboxCardGroup } from './CheckboxCardGroup';
2
- export type { CheckboxCardGroupProps, CheckboxCardGroupClassNames, CheckboxCardOption, } from './CheckboxCardGroup';