@pixstella/components 0.3.0 → 0.3.1

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 (38) hide show
  1. package/COPY-PASTE.md +109 -0
  2. package/README.md +9 -75
  3. package/dist/app/components/Dashboard/dashboardRegistry.cjs +1 -1
  4. package/dist/app/components/Dashboard/dashboardRegistry.mjs +202 -201
  5. package/dist/app/components/Table/DataTable.cjs +1 -1
  6. package/dist/app/components/Table/DataTable.mjs +46 -49
  7. package/dist/app/components/ai/ConfidenceSuggestions/ConfidenceSuggestions.cjs +1 -1
  8. package/dist/app/components/ai/ConfidenceSuggestions/ConfidenceSuggestions.mjs +53 -53
  9. package/dist/app/components/ai/ProposalCard/ProposalCard.cjs +1 -1
  10. package/dist/app/components/ai/ProposalCard/ProposalCard.mjs +227 -227
  11. package/dist/app/components/ai/ReviewTable/ReviewTable.cjs +1 -1
  12. package/dist/app/components/ai/ReviewTable/ReviewTable.mjs +81 -81
  13. package/dist/app/components/ai/SuggestionChecklist/SuggestionChecklist.cjs +1 -1
  14. package/dist/app/components/ai/SuggestionChecklist/SuggestionChecklist.mjs +15 -14
  15. package/dist/app/components/ui/AuthSection/AuthSection.cjs +1 -1
  16. package/dist/app/components/ui/AuthSection/AuthSection.mjs +19 -18
  17. package/dist/app/components/ui/Checkbox/Checkbox.cjs +1 -0
  18. package/dist/app/components/ui/Checkbox/Checkbox.css +1 -0
  19. package/dist/app/components/ui/Checkbox/Checkbox.mjs +87 -0
  20. package/dist/app/components/ui/DataGrid/DataGrid.cjs +1 -1
  21. package/dist/app/components/ui/DataGrid/DataGrid.mjs +196 -199
  22. package/dist/app/components/ui/PreviewConfirmDialog/PreviewConfirmDialog.cjs +1 -1
  23. package/dist/app/components/ui/PreviewConfirmDialog/PreviewConfirmDialog.mjs +47 -48
  24. package/dist/browser/pixstella.esm.js +70 -70
  25. package/dist/browser/pixstella.standalone.js +72 -72
  26. package/dist/index.cjs +1 -1
  27. package/dist/index.d.cts +32 -1
  28. package/dist/index.d.ts +32 -1
  29. package/dist/index.mjs +2886 -2884
  30. package/dist/registry/files/174512e8f294ad2f +101 -0
  31. package/dist/registry/files/4c7e419c8caf02c3 +119 -0
  32. package/dist/registry/files/{f23e788832b45fc0 → 67ac8b4abe3fc564} +2 -1
  33. package/dist/registry/files/{e84f443f3fc3f261 → 995feaa023211faf} +4 -8
  34. package/dist/registry/files/{5ba71aa83263995e → a27872a7d58aeb58} +4 -5
  35. package/dist/registry/files/{162078d04cb26276 → df919b524be27e88} +4 -5
  36. package/dist/registry/index.json +1 -1
  37. package/dist/styles.css +3 -0
  38. package/package.json +3 -10
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- // Type declarations for @pixstella/components 0.3.0.
1
+ // Type declarations for @pixstella/components 0.3.1.
2
2
  // GENERATED by scripts/build-types.mjs from lib/index.ts and the *.demo.js
3
3
  // manifests (docs.props). Do not edit by hand: run `npm run build:types`.
4
4
  //
@@ -5342,6 +5342,37 @@ export interface ChoiceGroupProps {
5342
5342
  /** Checkbox or radio group as selectable cards or a list, with an indeterminate select-all */
5343
5343
  export declare const ChoiceGroup: PixstellaComponent<ChoiceGroupProps>;
5344
5344
 
5345
+ /** Props for {@link Checkbox}. A token-styled checkbox over a native input: label, description, indeterminate, sizes */
5346
+ export interface CheckboxProps {
5347
+ /** Controlled state. */
5348
+ checked?: boolean;
5349
+ /** Initial state when uncontrolled. */
5350
+ defaultChecked?: boolean;
5351
+ /** Native change event. */
5352
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
5353
+ /** Called with the new state. */
5354
+ onCheckedChange?: (checked: boolean, event: any) => void;
5355
+ /** Mixed state (a dash), e.g. a partly selected select-all. */
5356
+ indeterminate?: boolean;
5357
+ /** Text beside the box; renders a <label>. */
5358
+ label?: React.ReactNode;
5359
+ /** Secondary text under the label (aria-describedby). */
5360
+ description?: React.ReactNode;
5361
+ /** 15, 18 or 22px. Default md. */
5362
+ size?: "sm" | "md" | "lg";
5363
+ /** Disables the input. */
5364
+ disabled?: boolean;
5365
+ /** Danger border and aria-invalid. */
5366
+ invalid?: boolean;
5367
+ /** Colour for this checkbox (default --px-accent). */
5368
+ tone?: string;
5369
+ /** Any other prop is passed through (most components spread extra props onto their root). */
5370
+ [key: string]: any;
5371
+ }
5372
+
5373
+ /** A token-styled checkbox over a native input: label, description, indeterminate, sizes */
5374
+ export declare const Checkbox: PixstellaComponent<CheckboxProps>;
5375
+
5345
5376
  /** Props for {@link Combobox}. Searchable input with highlighted suggestions, multi-select chips and async search */
5346
5377
  export interface ComboboxProps {
5347
5378
  /** Suggestions. With onSearch these are the initial list. */
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type declarations for @pixstella/components 0.3.0.
1
+ // Type declarations for @pixstella/components 0.3.1.
2
2
  // GENERATED by scripts/build-types.mjs from lib/index.ts and the *.demo.js
3
3
  // manifests (docs.props). Do not edit by hand: run `npm run build:types`.
4
4
  //
@@ -5342,6 +5342,37 @@ export interface ChoiceGroupProps {
5342
5342
  /** Checkbox or radio group as selectable cards or a list, with an indeterminate select-all */
5343
5343
  export declare const ChoiceGroup: PixstellaComponent<ChoiceGroupProps>;
5344
5344
 
5345
+ /** Props for {@link Checkbox}. A token-styled checkbox over a native input: label, description, indeterminate, sizes */
5346
+ export interface CheckboxProps {
5347
+ /** Controlled state. */
5348
+ checked?: boolean;
5349
+ /** Initial state when uncontrolled. */
5350
+ defaultChecked?: boolean;
5351
+ /** Native change event. */
5352
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
5353
+ /** Called with the new state. */
5354
+ onCheckedChange?: (checked: boolean, event: any) => void;
5355
+ /** Mixed state (a dash), e.g. a partly selected select-all. */
5356
+ indeterminate?: boolean;
5357
+ /** Text beside the box; renders a <label>. */
5358
+ label?: React.ReactNode;
5359
+ /** Secondary text under the label (aria-describedby). */
5360
+ description?: React.ReactNode;
5361
+ /** 15, 18 or 22px. Default md. */
5362
+ size?: "sm" | "md" | "lg";
5363
+ /** Disables the input. */
5364
+ disabled?: boolean;
5365
+ /** Danger border and aria-invalid. */
5366
+ invalid?: boolean;
5367
+ /** Colour for this checkbox (default --px-accent). */
5368
+ tone?: string;
5369
+ /** Any other prop is passed through (most components spread extra props onto their root). */
5370
+ [key: string]: any;
5371
+ }
5372
+
5373
+ /** A token-styled checkbox over a native input: label, description, indeterminate, sizes */
5374
+ export declare const Checkbox: PixstellaComponent<CheckboxProps>;
5375
+
5345
5376
  /** Props for {@link Combobox}. Searchable input with highlighted suggestions, multi-select chips and async search */
5346
5377
  export interface ComboboxProps {
5347
5378
  /** Suggestions. With onSearch these are the initial list. */