@mich8060/unified-design-system 0.2.13 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/discovery.json +41 -0
- package/dist/ai/examples/index.cjs +1 -0
- package/dist/ai/examples/index.js +1 -0
- package/dist/ai/examples/training.examples.cjs +1 -0
- package/dist/ai/examples/training.examples.js +1 -0
- package/dist/ai/figma-make.contract.json +178 -0
- package/dist/ai/figma-make.md +50 -0
- package/dist/ai/icons/catalog.json +76 -0
- package/dist/ai/index.cjs +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai/manifest/components.manifest.cjs +1 -1
- package/dist/ai/manifest/components.manifest.js +1 -1
- package/dist/ai/manifest/composition.manifest.cjs +1 -0
- package/dist/ai/manifest/composition.manifest.js +1 -0
- package/dist/ai/manifest/governance.manifest.cjs +1 -1
- package/dist/ai/manifest/governance.manifest.js +1 -1
- package/dist/ai/manifest/index.cjs +1 -0
- package/dist/ai/manifest/index.js +1 -0
- package/dist/ai/manifest/intent-mappings.manifest.cjs +1 -0
- package/dist/ai/manifest/intent-mappings.manifest.js +1 -0
- package/dist/ai/manifest/layout.manifest.cjs +1 -1
- package/dist/ai/manifest/layout.manifest.js +1 -1
- package/dist/ai/manifest/prop-aliases.manifest.cjs +1 -0
- package/dist/ai/manifest/prop-aliases.manifest.js +1 -0
- package/dist/ai/manifest/system.manifest.cjs +1 -1
- package/dist/ai/manifest/system.manifest.js +1 -1
- package/dist/ai/manifest.json +3165 -0
- package/dist/ai/policies/policy.engine.cjs +1 -1
- package/dist/ai/policies/policy.engine.js +1 -1
- package/dist/ai/policies/rules/composition.rules.cjs +1 -1
- package/dist/ai/policies/rules/composition.rules.js +1 -1
- package/dist/ai/policies/rules/props.rules.cjs +1 -0
- package/dist/ai/policies/rules/props.rules.js +1 -0
- package/dist/ai/policies/rules/tailwind.rules.cjs +1 -0
- package/dist/ai/policies/rules/tailwind.rules.js +1 -0
- package/dist/ai/policies/rules/token-variable.rules.cjs +1 -0
- package/dist/ai/policies/rules/token-variable.rules.js +1 -0
- package/dist/ai/prompts/figma-make.prompt.md +48 -0
- package/dist/ai/schemas/ai-output.schema.json +71 -0
- package/dist/ai/sdk/index.cjs +1 -0
- package/dist/ai/sdk/index.js +1 -0
- package/dist/ai/sdk/runtime-sdk.cjs +2 -0
- package/dist/ai/sdk/runtime-sdk.js +2 -0
- package/dist/ai/templates/layouts.json +416 -0
- package/dist/ai/validation/deterministicFeedback.cjs +1 -0
- package/dist/ai/validation/deterministicFeedback.js +1 -0
- package/dist/ai/validation/driftDetection.cjs +1 -1
- package/dist/ai/validation/driftDetection.js +1 -1
- package/dist/ai/validation/index.cjs +1 -0
- package/dist/ai/validation/index.js +1 -0
- package/dist/ai/validation/validateAIOutput.cjs +1 -1
- package/dist/ai/validation/validateAIOutput.js +1 -1
- package/dist/app-shell/AppShell.d.ts +8 -0
- package/dist/charts/BizChartsAdapters.cjs +1 -0
- package/dist/charts/BizChartsAdapters.js +1 -0
- package/dist/charts-bizcharts/index.cjs +1 -0
- package/dist/charts-bizcharts/index.js +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.cjs +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.cjs +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js +1 -0
- package/dist/components/Checklist/Checklist.cjs +1 -0
- package/dist/components/Checklist/Checklist.js +1 -0
- package/dist/components/Chip/Chip.cjs +1 -1
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/CurrencyInput/CurrencyInput.cjs +1 -0
- package/dist/components/CurrencyInput/CurrencyInput.js +1 -0
- package/dist/components/DateInput/DateInput.cjs +1 -0
- package/dist/components/DateInput/DateInput.js +1 -0
- package/dist/components/DateRangeInput/DateRangeInput.cjs +1 -0
- package/dist/components/DateRangeInput/DateRangeInput.js +1 -0
- package/dist/components/Dialog/Dialog.cjs +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/DotStatus/DotStatus.cjs +1 -1
- package/dist/components/DotStatus/DotStatus.js +1 -1
- package/dist/components/EmptyState/EmptyState.cjs +1 -1
- package/dist/components/EmptyState/EmptyState.js +1 -1
- package/dist/components/Field/Field.cjs +1 -1
- package/dist/components/Field/Field.js +1 -1
- package/dist/components/FileUpload/FileUpload.cjs +1 -1
- package/dist/components/FileUpload/FileUpload.js +1 -1
- package/dist/components/Icon/Icon.cjs +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Menu/Menu.cjs +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/NumberInput/NumberInput.cjs +1 -0
- package/dist/components/NumberInput/NumberInput.js +1 -0
- package/dist/components/Pagination/Pagination.cjs +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.cjs +1 -0
- package/dist/components/PasswordInput/PasswordInput.js +1 -0
- package/dist/components/PhoneInput/PhoneInput.cjs +1 -0
- package/dist/components/PhoneInput/PhoneInput.js +1 -0
- package/dist/components/ProgressCircle/ProgressCircle.cjs +1 -1
- package/dist/components/ProgressCircle/ProgressCircle.js +1 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.cjs +1 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.cjs +1 -0
- package/dist/components/RadioGroup/RadioGroup.js +1 -0
- package/dist/components/SearchInput/SearchInput.cjs +1 -0
- package/dist/components/SearchInput/SearchInput.js +1 -0
- package/dist/components/SectionHeader/SectionHeader.cjs +1 -0
- package/dist/components/SectionHeader/SectionHeader.js +1 -0
- package/dist/components/Statistics/Statistics.cjs +1 -0
- package/dist/components/Statistics/Statistics.js +1 -0
- package/dist/components/Status/Status.cjs +1 -1
- package/dist/components/Status/Status.js +1 -1
- package/dist/components/Steps/Steps.cjs +1 -1
- package/dist/components/Steps/Steps.js +1 -1
- package/dist/components/Table/Table.cjs +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Tabs/Tabs.cjs +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Text/Text.cjs +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/TimeInput/TimeInput.cjs +1 -0
- package/dist/components/TimeInput/TimeInput.js +1 -0
- package/dist/components/TokenInput/TokenInput.cjs +1 -0
- package/dist/components/TokenInput/TokenInput.js +1 -0
- package/dist/components/Toolbar/Toolbar.cjs +1 -0
- package/dist/components/Toolbar/Toolbar.js +1 -0
- package/dist/components/Tooltip/Tooltip.cjs +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/design-system/ai/audit/audit.types.d.ts +1 -0
- package/dist/design-system/ai/examples/index.d.ts +4 -0
- package/dist/design-system/ai/examples/training.examples.d.ts +22 -0
- package/dist/design-system/ai/index.d.ts +10 -3
- package/dist/design-system/ai/manifest/composition.manifest.d.ts +11 -0
- package/dist/design-system/ai/manifest/governance.manifest.d.ts +5 -0
- package/dist/design-system/ai/manifest/index.d.ts +10 -0
- package/dist/design-system/ai/manifest/intent-mappings.manifest.d.ts +63 -0
- package/dist/design-system/ai/manifest/prop-aliases.manifest.d.ts +10 -0
- package/dist/design-system/ai/manifest/system.manifest.d.ts +2 -0
- package/dist/design-system/ai/manifest/types.d.ts +11 -0
- package/dist/design-system/ai/policies/rules/props.rules.d.ts +2 -0
- package/dist/design-system/ai/policies/rules/tailwind.rules.d.ts +2 -0
- package/dist/design-system/ai/policies/rules/token-variable.rules.d.ts +2 -0
- package/dist/design-system/ai/sdk/index.d.ts +1 -0
- package/dist/design-system/ai/sdk/runtime-sdk.d.ts +21 -0
- package/dist/design-system/ai/validation/deterministicFeedback.d.ts +15 -0
- package/dist/design-system/ai/validation/index.d.ts +5 -0
- package/dist/design-system/ai/validation/validateAIOutput.d.ts +13 -0
- package/dist/design-system/charts/BizChartsAdapters.d.ts +40 -0
- package/dist/design-system/charts/index.d.ts +1 -0
- package/dist/design-system/components/Button/Button.d.ts +1 -1
- package/dist/design-system/components/Button/Button.types.d.ts +1 -0
- package/dist/design-system/components/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/dist/design-system/components/ButtonGroup/ButtonGroup.types.d.ts +19 -0
- package/dist/design-system/components/ButtonGroup/index.d.ts +2 -0
- package/dist/design-system/components/CheckboxGroup/CheckboxGroup.d.ts +3 -0
- package/dist/design-system/components/CheckboxGroup/CheckboxGroup.types.d.ts +15 -0
- package/dist/design-system/components/CheckboxGroup/index.d.ts +2 -0
- package/dist/design-system/components/Checklist/Checklist.d.ts +3 -0
- package/dist/design-system/components/Checklist/Checklist.types.d.ts +13 -0
- package/dist/design-system/components/Checklist/index.d.ts +2 -0
- package/dist/design-system/components/Chip/Chip.d.ts +4 -3
- package/dist/design-system/components/Chip/Chip.types.d.ts +13 -9
- package/dist/design-system/components/CurrencyInput/CurrencyInput.d.ts +2 -0
- package/dist/design-system/components/CurrencyInput/CurrencyInput.types.d.ts +3 -0
- package/dist/design-system/components/CurrencyInput/index.d.ts +2 -0
- package/dist/design-system/components/DateInput/DateInput.d.ts +2 -0
- package/dist/design-system/components/DateInput/DateInput.types.d.ts +3 -0
- package/dist/design-system/components/DateInput/index.d.ts +2 -0
- package/dist/design-system/components/DateRangeInput/DateRangeInput.d.ts +3 -0
- package/dist/design-system/components/DateRangeInput/DateRangeInput.types.d.ts +15 -0
- package/dist/design-system/components/DateRangeInput/index.d.ts +2 -0
- package/dist/design-system/components/Dialog/Dialog.types.d.ts +9 -8
- package/dist/design-system/components/Field/Field.d.ts +1 -1
- package/dist/design-system/components/Field/Field.types.d.ts +11 -9
- package/dist/design-system/components/FileUpload/FileUpload.d.ts +1 -1
- package/dist/design-system/components/FileUpload/FileUpload.types.d.ts +2 -0
- package/dist/design-system/components/Menu/index.d.ts +3 -0
- package/dist/design-system/components/NumberInput/NumberInput.d.ts +3 -0
- package/dist/design-system/components/NumberInput/NumberInput.types.d.ts +2 -0
- package/dist/design-system/components/NumberInput/index.d.ts +2 -0
- package/dist/design-system/components/Pagination/Pagination.d.ts +5 -3
- package/dist/design-system/components/Pagination/Pagination.types.d.ts +4 -1
- package/dist/design-system/components/PasswordInput/PasswordInput.d.ts +2 -0
- package/dist/design-system/components/PasswordInput/PasswordInput.types.d.ts +5 -0
- package/dist/design-system/components/PasswordInput/index.d.ts +2 -0
- package/dist/design-system/components/PhoneInput/PhoneInput.d.ts +2 -0
- package/dist/design-system/components/PhoneInput/PhoneInput.types.d.ts +5 -0
- package/dist/design-system/components/PhoneInput/index.d.ts +2 -0
- package/dist/design-system/components/ProgressCircle/ProgressCircle.d.ts +3 -2
- package/dist/design-system/components/ProgressCircle/ProgressCircle.types.d.ts +7 -3
- package/dist/design-system/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
- package/dist/design-system/components/ProgressIndicator/ProgressIndicator.types.d.ts +8 -4
- package/dist/design-system/components/RadioGroup/RadioGroup.d.ts +3 -0
- package/dist/design-system/components/RadioGroup/RadioGroup.types.d.ts +16 -0
- package/dist/design-system/components/RadioGroup/index.d.ts +2 -0
- package/dist/design-system/components/SearchInput/SearchInput.d.ts +2 -0
- package/dist/design-system/components/SearchInput/SearchInput.types.d.ts +3 -0
- package/dist/design-system/components/SearchInput/index.d.ts +2 -0
- package/dist/design-system/components/SectionHeader/SectionHeader.d.ts +3 -0
- package/dist/design-system/components/SectionHeader/SectionHeader.types.d.ts +9 -0
- package/dist/design-system/components/SectionHeader/index.d.ts +2 -0
- package/dist/design-system/components/Statistics/Statistics.d.ts +3 -0
- package/dist/design-system/components/Statistics/Statistics.types.d.ts +18 -0
- package/dist/design-system/components/Statistics/index.d.ts +2 -0
- package/dist/design-system/components/Status/Status.types.d.ts +4 -2
- package/dist/design-system/components/Tabs/Tabs.d.ts +1 -1
- package/dist/design-system/components/Tabs/Tabs.types.d.ts +4 -1
- package/dist/design-system/components/TimeInput/TimeInput.d.ts +2 -0
- package/dist/design-system/components/TimeInput/TimeInput.types.d.ts +3 -0
- package/dist/design-system/components/TimeInput/index.d.ts +2 -0
- package/dist/design-system/components/Toggle/index.d.ts +2 -0
- package/dist/design-system/components/TokenInput/TokenInput.d.ts +4 -0
- package/dist/design-system/components/TokenInput/TokenInput.types.d.ts +17 -0
- package/dist/design-system/components/TokenInput/index.d.ts +3 -0
- package/dist/design-system/components/Toolbar/Toolbar.d.ts +3 -0
- package/dist/design-system/components/Toolbar/Toolbar.types.d.ts +8 -0
- package/dist/design-system/components/Toolbar/index.d.ts +2 -0
- package/dist/design-system/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/design-system/components/Tooltip/Tooltip.types.d.ts +1 -0
- package/dist/design-system/figma-make/index.d.ts +42 -0
- package/dist/design-system/generated/component-api.d.ts +2043 -0
- package/dist/design-system/index.d.ts +18 -2
- package/dist/figma-make/index.cjs +1 -0
- package/dist/figma-make/index.js +1 -0
- package/dist/generated/component-api.cjs +1 -0
- package/dist/generated/component-api.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/src/app-shell/AppShell.cjs +1 -1
- package/dist/src/app-shell/AppShell.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +70 -19
- package/dist/components/Accordion/Accordion.spec.cjs +0 -1
- package/dist/components/Accordion/Accordion.spec.js +0 -1
- package/dist/components/ActionMenu/ActionMenu.spec.cjs +0 -1
- package/dist/components/ActionMenu/ActionMenu.spec.js +0 -1
- package/dist/components/Avatar/Avatar.spec.cjs +0 -1
- package/dist/components/Avatar/Avatar.spec.js +0 -1
- package/dist/components/Badge/Badge.spec.cjs +0 -1
- package/dist/components/Badge/Badge.spec.js +0 -1
- package/dist/components/Branding/Branding.spec.cjs +0 -1
- package/dist/components/Branding/Branding.spec.js +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.spec.cjs +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.spec.js +0 -1
- package/dist/components/Button/Button.spec.cjs +0 -1
- package/dist/components/Button/Button.spec.js +0 -1
- package/dist/components/Calendar/Calendar.spec.cjs +0 -1
- package/dist/components/Calendar/Calendar.spec.js +0 -1
- package/dist/components/Card/Card.spec.cjs +0 -1
- package/dist/components/Card/Card.spec.js +0 -1
- package/dist/components/Checkbox/Checkbox.spec.cjs +0 -1
- package/dist/components/Checkbox/Checkbox.spec.js +0 -1
- package/dist/components/Chip/Chip.spec.cjs +0 -1
- package/dist/components/Chip/Chip.spec.js +0 -1
- package/dist/components/Code/Code.spec.cjs +0 -1
- package/dist/components/Code/Code.spec.js +0 -1
- package/dist/components/Container/Container.spec.cjs +0 -1
- package/dist/components/Container/Container.spec.js +0 -1
- package/dist/components/Datepicker/Datepicker.spec.cjs +0 -1
- package/dist/components/Datepicker/Datepicker.spec.js +0 -1
- package/dist/components/Dialog/Dialog.spec.cjs +0 -1
- package/dist/components/Dialog/Dialog.spec.js +0 -1
- package/dist/components/Divider/Divider.spec.cjs +0 -1
- package/dist/components/Divider/Divider.spec.js +0 -1
- package/dist/components/DotStatus/DotStatus.spec.cjs +0 -1
- package/dist/components/DotStatus/DotStatus.spec.js +0 -1
- package/dist/components/Dropdown/Dropdown.spec.cjs +0 -1
- package/dist/components/Dropdown/Dropdown.spec.js +0 -1
- package/dist/components/EmptyState/EmptyState.spec.cjs +0 -1
- package/dist/components/EmptyState/EmptyState.spec.js +0 -1
- package/dist/components/EventCard/EventCard.spec.cjs +0 -1
- package/dist/components/EventCard/EventCard.spec.js +0 -1
- package/dist/components/Field/Field.spec.cjs +0 -1
- package/dist/components/Field/Field.spec.js +0 -1
- package/dist/components/FileUpload/FileUpload.spec.cjs +0 -1
- package/dist/components/FileUpload/FileUpload.spec.js +0 -1
- package/dist/components/Flex/Flex.spec.cjs +0 -1
- package/dist/components/Flex/Flex.spec.js +0 -1
- package/dist/components/Icon/Icon.spec.cjs +0 -1
- package/dist/components/Icon/Icon.spec.js +0 -1
- package/dist/components/ImageAspect/ImageAspect.spec.cjs +0 -1
- package/dist/components/ImageAspect/ImageAspect.spec.js +0 -1
- package/dist/components/Key/Key.spec.cjs +0 -1
- package/dist/components/Key/Key.spec.js +0 -1
- package/dist/components/Menu/Menu.spec.cjs +0 -1
- package/dist/components/Menu/Menu.spec.js +0 -1
- package/dist/components/MicroCalendar/MicroCalendar.spec.cjs +0 -1
- package/dist/components/MicroCalendar/MicroCalendar.spec.js +0 -1
- package/dist/components/Modal/Modal.spec.cjs +0 -1
- package/dist/components/Modal/Modal.spec.js +0 -1
- package/dist/components/Pagination/Pagination.spec.cjs +0 -1
- package/dist/components/Pagination/Pagination.spec.js +0 -1
- package/dist/components/PillToggle/PillToggle.cjs +0 -1
- package/dist/components/PillToggle/PillToggle.js +0 -1
- package/dist/components/PillToggle/PillToggle.spec.cjs +0 -1
- package/dist/components/PillToggle/PillToggle.spec.js +0 -1
- package/dist/components/Playground/Playground.cjs +0 -9
- package/dist/components/Playground/Playground.js +0 -9
- package/dist/components/Playground/Playground.spec.cjs +0 -1
- package/dist/components/Playground/Playground.spec.js +0 -1
- package/dist/components/ProgressCircle/ProgressCircle.spec.cjs +0 -1
- package/dist/components/ProgressCircle/ProgressCircle.spec.js +0 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.spec.cjs +0 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.spec.js +0 -1
- package/dist/components/Radio/Radio.spec.cjs +0 -1
- package/dist/components/Radio/Radio.spec.js +0 -1
- package/dist/components/Slider/Slider.spec.cjs +0 -1
- package/dist/components/Slider/Slider.spec.js +0 -1
- package/dist/components/Status/Status.spec.cjs +0 -1
- package/dist/components/Status/Status.spec.js +0 -1
- package/dist/components/Steps/Steps.spec.cjs +0 -1
- package/dist/components/Steps/Steps.spec.js +0 -1
- package/dist/components/Table/Table.spec.cjs +0 -1
- package/dist/components/Table/Table.spec.js +0 -1
- package/dist/components/Tabs/Tabs.spec.cjs +0 -1
- package/dist/components/Tabs/Tabs.spec.js +0 -1
- package/dist/components/Tag/Tag.spec.cjs +0 -1
- package/dist/components/Tag/Tag.spec.js +0 -1
- package/dist/components/Text/Text.spec.cjs +0 -1
- package/dist/components/Text/Text.spec.js +0 -1
- package/dist/components/TextInput/TextInput.spec.cjs +0 -1
- package/dist/components/TextInput/TextInput.spec.js +0 -1
- package/dist/components/Textarea/Textarea.spec.cjs +0 -1
- package/dist/components/Textarea/Textarea.spec.js +0 -1
- package/dist/components/Toast/Toast.spec.cjs +0 -1
- package/dist/components/Toast/Toast.spec.js +0 -1
- package/dist/components/Toggle/Toggle.spec.cjs +0 -1
- package/dist/components/Toggle/Toggle.spec.js +0 -1
- package/dist/components/Tooltip/Tooltip.spec.cjs +0 -1
- package/dist/components/Tooltip/Tooltip.spec.js +0 -1
- package/dist/design-system/components/Accordion/Accordion.spec.d.ts +0 -4
- package/dist/design-system/components/ActionMenu/ActionMenu.spec.d.ts +0 -4
- package/dist/design-system/components/Avatar/Avatar.spec.d.ts +0 -6
- package/dist/design-system/components/Badge/Badge.spec.d.ts +0 -12
- package/dist/design-system/components/Branding/Branding.spec.d.ts +0 -6
- package/dist/design-system/components/Breadcrumb/Breadcrumb.spec.d.ts +0 -4
- package/dist/design-system/components/Button/Button.spec.d.ts +0 -12
- package/dist/design-system/components/Calendar/Calendar.spec.d.ts +0 -4
- package/dist/design-system/components/Card/Card.spec.d.ts +0 -4
- package/dist/design-system/components/Checkbox/Checkbox.spec.d.ts +0 -4
- package/dist/design-system/components/Chip/Chip.spec.d.ts +0 -13
- package/dist/design-system/components/Code/Code.spec.d.ts +0 -10
- package/dist/design-system/components/Container/Container.spec.d.ts +0 -2
- package/dist/design-system/components/Datepicker/Datepicker.spec.d.ts +0 -6
- package/dist/design-system/components/Dialog/Dialog.spec.d.ts +0 -8
- package/dist/design-system/components/Divider/Divider.spec.d.ts +0 -10
- package/dist/design-system/components/DotStatus/DotStatus.spec.d.ts +0 -10
- package/dist/design-system/components/Dropdown/Dropdown.spec.d.ts +0 -12
- package/dist/design-system/components/EmptyState/EmptyState.spec.d.ts +0 -2
- package/dist/design-system/components/EventCard/EventCard.spec.d.ts +0 -8
- package/dist/design-system/components/Field/Field.spec.d.ts +0 -4
- package/dist/design-system/components/FileUpload/FileUpload.spec.d.ts +0 -6
- package/dist/design-system/components/Flex/Flex.spec.d.ts +0 -2
- package/dist/design-system/components/Icon/Icon.spec.d.ts +0 -6
- package/dist/design-system/components/ImageAspect/ImageAspect.spec.d.ts +0 -8
- package/dist/design-system/components/Key/Key.spec.d.ts +0 -8
- package/dist/design-system/components/Menu/Menu.spec.d.ts +0 -6
- package/dist/design-system/components/MicroCalendar/MicroCalendar.spec.d.ts +0 -4
- package/dist/design-system/components/Modal/Modal.spec.d.ts +0 -8
- package/dist/design-system/components/Pagination/Pagination.spec.d.ts +0 -6
- package/dist/design-system/components/PillToggle/PillToggle.d.ts +0 -13
- package/dist/design-system/components/PillToggle/PillToggle.spec.d.ts +0 -6
- package/dist/design-system/components/PillToggle/PillToggle.types.d.ts +0 -9
- package/dist/design-system/components/PillToggle/index.d.ts +0 -3
- package/dist/design-system/components/Playground/Playground.d.ts +0 -12
- package/dist/design-system/components/Playground/Playground.spec.d.ts +0 -6
- package/dist/design-system/components/Playground/Playground.types.d.ts +0 -7
- package/dist/design-system/components/Playground/index.d.ts +0 -3
- package/dist/design-system/components/ProgressCircle/ProgressCircle.spec.d.ts +0 -10
- package/dist/design-system/components/ProgressIndicator/ProgressIndicator.spec.d.ts +0 -10
- package/dist/design-system/components/Radio/Radio.spec.d.ts +0 -4
- package/dist/design-system/components/Slider/Slider.spec.d.ts +0 -4
- package/dist/design-system/components/Status/Status.spec.d.ts +0 -11
- package/dist/design-system/components/Steps/Steps.spec.d.ts +0 -11
- package/dist/design-system/components/Table/Table.spec.d.ts +0 -4
- package/dist/design-system/components/Tabs/Tabs.spec.d.ts +0 -7
- package/dist/design-system/components/Tag/Tag.spec.d.ts +0 -13
- package/dist/design-system/components/Text/Text.spec.d.ts +0 -2
- package/dist/design-system/components/TextInput/TextInput.spec.d.ts +0 -12
- package/dist/design-system/components/Textarea/Textarea.spec.d.ts +0 -10
- package/dist/design-system/components/Toast/Toast.spec.d.ts +0 -8
- package/dist/design-system/components/Toggle/Toggle.spec.d.ts +0 -8
- package/dist/design-system/components/Tooltip/Tooltip.spec.d.ts +0 -8
- package/dist/design-system/specs/spec.types.d.ts +0 -18
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { GovernanceConfig, VersionLineage } from "./types";
|
|
2
2
|
export declare const AI_MANIFEST_VERSION = "1.0.0";
|
|
3
|
+
export declare const AI_GOVERNANCE_VERSION = "1.0.0";
|
|
3
4
|
export declare const AI_POLICY_VERSION = "1.0.0";
|
|
5
|
+
export declare const AI_CONTRACT_SCHEMA_VERSION = "1.0.0";
|
|
6
|
+
export declare const AI_COMPONENT_API_SCHEMA_VERSION = "1.0.0";
|
|
7
|
+
export declare const AI_SCHEMA_VERSION = "1.0.0";
|
|
8
|
+
export declare const AI_API_SCHEMA_VERSION = "1.0.0";
|
|
4
9
|
export declare const UDSGovernance: GovernanceConfig;
|
|
5
10
|
export declare function getVersionLineage(): VersionLineage;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { UDSManifest, UDS_AI_MANIFEST } from "./system.manifest";
|
|
2
|
+
export { UDSGovernance, getVersionLineage, AI_MANIFEST_VERSION, AI_GOVERNANCE_VERSION, AI_POLICY_VERSION, AI_CONTRACT_SCHEMA_VERSION, AI_COMPONENT_API_SCHEMA_VERSION, AI_SCHEMA_VERSION, AI_API_SCHEMA_VERSION, } from "./governance.manifest";
|
|
3
|
+
export { ComponentRegistry } from "./components.manifest";
|
|
4
|
+
export { PatternRegistry } from "./patterns.manifest";
|
|
5
|
+
export { LayoutRules } from "./layout.manifest";
|
|
6
|
+
export { CompositionRules } from "./composition.manifest";
|
|
7
|
+
export { PropAliasRules, getCanonicalPropName, getAliasEntries } from "./prop-aliases.manifest";
|
|
8
|
+
export { TokenIntentMap } from "./tokens.intent.manifest";
|
|
9
|
+
export { IntentComponentMappings } from "./intent-mappings.manifest";
|
|
10
|
+
export type { ComponentManifestItem, ComponentRegistryType, LayoutManifestRules, ManifestGovernance, PatternManifestItem, PatternRegistryType, TokenIntentMapType, UDSManifestType, UINodeTree, ValidationError, ValidationResult, GovernanceConfig, VersionLineage, } from "./types";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare const IntentComponentMappings: {
|
|
2
|
+
readonly primaryAction: {
|
|
3
|
+
readonly component: "Button";
|
|
4
|
+
readonly props: {
|
|
5
|
+
readonly appearance: "primary";
|
|
6
|
+
};
|
|
7
|
+
readonly notes: "Use one primary action per section max.";
|
|
8
|
+
};
|
|
9
|
+
readonly secondaryAction: {
|
|
10
|
+
readonly component: "Button";
|
|
11
|
+
readonly props: {
|
|
12
|
+
readonly appearance: "text";
|
|
13
|
+
};
|
|
14
|
+
readonly notes: "Use non-primary appearance for secondary actions.";
|
|
15
|
+
};
|
|
16
|
+
readonly sectionContainer: {
|
|
17
|
+
readonly component: "Container";
|
|
18
|
+
readonly props: {
|
|
19
|
+
readonly gap: "--uds-spacing-24";
|
|
20
|
+
};
|
|
21
|
+
readonly notes: "Default section wrapper with governed spacing.";
|
|
22
|
+
};
|
|
23
|
+
readonly contentStack: {
|
|
24
|
+
readonly component: "Flex";
|
|
25
|
+
readonly props: {
|
|
26
|
+
readonly direction: "column";
|
|
27
|
+
readonly gap: "--uds-spacing-16";
|
|
28
|
+
};
|
|
29
|
+
readonly notes: "Primary stack for vertical rhythm.";
|
|
30
|
+
};
|
|
31
|
+
readonly formFieldWrapper: {
|
|
32
|
+
readonly component: "Field";
|
|
33
|
+
readonly notes: "Wrap inputs that require label/helper/error messaging.";
|
|
34
|
+
};
|
|
35
|
+
readonly textInputControl: {
|
|
36
|
+
readonly component: "TextInput";
|
|
37
|
+
readonly notes: "Use TextInput for freeform single-line text.";
|
|
38
|
+
};
|
|
39
|
+
readonly selectionControl: {
|
|
40
|
+
readonly component: "Dropdown";
|
|
41
|
+
readonly notes: "Use Dropdown for controlled selection.";
|
|
42
|
+
};
|
|
43
|
+
readonly statusIndicator: {
|
|
44
|
+
readonly component: "Status";
|
|
45
|
+
readonly notes: "Use semantic status component for state communication.";
|
|
46
|
+
};
|
|
47
|
+
readonly badgeLabel: {
|
|
48
|
+
readonly component: "Tag";
|
|
49
|
+
readonly notes: "Use Tag for concise categorical labels.";
|
|
50
|
+
};
|
|
51
|
+
readonly contextualActions: {
|
|
52
|
+
readonly component: "ActionMenu";
|
|
53
|
+
readonly notes: "Use ActionMenu for row/object-level secondary actions.";
|
|
54
|
+
};
|
|
55
|
+
readonly dataPresentation: {
|
|
56
|
+
readonly component: "Table";
|
|
57
|
+
readonly notes: "Use Table for tabular datasets and structured records.";
|
|
58
|
+
};
|
|
59
|
+
readonly confirmationDialog: {
|
|
60
|
+
readonly component: "Modal";
|
|
61
|
+
readonly notes: "Use Modal for confirmation/destructive decision points.";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface PropAliasManifest {
|
|
2
|
+
global: Record<string, string>;
|
|
3
|
+
byComponent: Record<string, Record<string, string>>;
|
|
4
|
+
}
|
|
5
|
+
export declare const PropAliasRules: PropAliasManifest;
|
|
6
|
+
export declare function getCanonicalPropName(componentName: string, propName: string): string;
|
|
7
|
+
export declare function getAliasEntries(componentName: string): Array<{
|
|
8
|
+
alias: string;
|
|
9
|
+
canonical: string;
|
|
10
|
+
}>;
|
|
@@ -58,6 +58,7 @@ export interface LayoutManifestRules {
|
|
|
58
58
|
compactGapToken: string;
|
|
59
59
|
};
|
|
60
60
|
allowedComposition: Record<string, string[]>;
|
|
61
|
+
allowedParents: Record<string, string[]>;
|
|
61
62
|
disallowedNesting: Array<{
|
|
62
63
|
parent: string;
|
|
63
64
|
child: string;
|
|
@@ -80,6 +81,13 @@ export interface TokenIntentMapType {
|
|
|
80
81
|
border: Record<string, string>;
|
|
81
82
|
state: Record<string, string>;
|
|
82
83
|
}
|
|
84
|
+
export interface IntentComponentMappingsType {
|
|
85
|
+
[intent: string]: {
|
|
86
|
+
component: string;
|
|
87
|
+
props?: Record<string, unknown>;
|
|
88
|
+
notes?: string;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
83
91
|
export interface UDSManifestType {
|
|
84
92
|
version: string;
|
|
85
93
|
tokenVersion: string;
|
|
@@ -87,6 +95,7 @@ export interface UDSManifestType {
|
|
|
87
95
|
patterns: PatternRegistryType;
|
|
88
96
|
layout: LayoutManifestRules;
|
|
89
97
|
tokens: TokenIntentMapType;
|
|
98
|
+
intentComponentMappings: IntentComponentMappingsType;
|
|
90
99
|
governance: ManifestGovernance;
|
|
91
100
|
}
|
|
92
101
|
export interface ValidationError {
|
|
@@ -108,6 +117,7 @@ export interface GovernanceConfig {
|
|
|
108
117
|
systemVersion: string;
|
|
109
118
|
tokenVersion: string;
|
|
110
119
|
manifestVersion: string;
|
|
120
|
+
governanceVersion: string;
|
|
111
121
|
policyVersion: string;
|
|
112
122
|
enforcement: {
|
|
113
123
|
strictMode: boolean;
|
|
@@ -129,5 +139,6 @@ export interface VersionLineage {
|
|
|
129
139
|
udsVersion: string;
|
|
130
140
|
tokenVersion: string;
|
|
131
141
|
manifestVersion: string;
|
|
142
|
+
governanceVersion: string;
|
|
132
143
|
policyVersion: string;
|
|
133
144
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createUDSRuntimeHelperSDK, type UDSRuntimeHelperSDK, type CreateUDSRuntimeHelperSDKOptions, type CanonicalizedPropsResult, } from "./runtime-sdk";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentRegistry } from "../manifest/components.manifest";
|
|
2
|
+
import { UDSManifest } from "../manifest/system.manifest";
|
|
3
|
+
import type { GovernanceConfig, VersionLineage } from "../manifest/types";
|
|
4
|
+
import { type AIValidationResult } from "../validation/validateAIOutput";
|
|
5
|
+
export interface CanonicalizedPropsResult {
|
|
6
|
+
canonicalProps: Record<string, unknown>;
|
|
7
|
+
aliasesApplied: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
export interface UDSRuntimeHelperSDK {
|
|
10
|
+
readonly governance: GovernanceConfig;
|
|
11
|
+
getVersionLineage(): VersionLineage;
|
|
12
|
+
getManifest(): typeof UDSManifest;
|
|
13
|
+
getComponent(componentName: string): (typeof ComponentRegistry)[string] | undefined;
|
|
14
|
+
canonicalizeProps(componentName: string, props: Record<string, unknown>): CanonicalizedPropsResult;
|
|
15
|
+
validate(output: unknown): AIValidationResult;
|
|
16
|
+
validateOrThrow(output: unknown): AIValidationResult;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateUDSRuntimeHelperSDKOptions {
|
|
19
|
+
governance?: GovernanceConfig;
|
|
20
|
+
}
|
|
21
|
+
export declare function createUDSRuntimeHelperSDK(options?: CreateUDSRuntimeHelperSDKOptions): UDSRuntimeHelperSDK;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PolicyViolation } from "../policies/policy.types";
|
|
2
|
+
export interface DeterministicViolationFeedback {
|
|
3
|
+
id: string;
|
|
4
|
+
code: string;
|
|
5
|
+
path: string;
|
|
6
|
+
message: string;
|
|
7
|
+
fix: string;
|
|
8
|
+
severity: "error" | "warning";
|
|
9
|
+
}
|
|
10
|
+
export declare function sortAndDedupeViolations(violations: PolicyViolation[]): PolicyViolation[];
|
|
11
|
+
export declare function buildDeterministicFeedback(violations: PolicyViolation[]): {
|
|
12
|
+
fingerprint: string;
|
|
13
|
+
summary: string;
|
|
14
|
+
items: DeterministicViolationFeedback[];
|
|
15
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { validateTree } from "./validateTree";
|
|
2
|
+
export { validateSchema } from "./schemaValidation";
|
|
3
|
+
export { detectDrift } from "./driftDetection";
|
|
4
|
+
export { validateAIOutput } from "./validateAIOutput";
|
|
5
|
+
export { buildDeterministicFeedback, sortAndDedupeViolations } from "./deterministicFeedback";
|
|
@@ -4,8 +4,21 @@ export interface AIValidationResult {
|
|
|
4
4
|
status: "pass" | "fail";
|
|
5
5
|
violations: PolicyViolation[];
|
|
6
6
|
warnings: PolicyViolation[];
|
|
7
|
+
deterministicFeedback?: {
|
|
8
|
+
fingerprint: string;
|
|
9
|
+
summary: string;
|
|
10
|
+
items: Array<{
|
|
11
|
+
id: string;
|
|
12
|
+
code: string;
|
|
13
|
+
path: string;
|
|
14
|
+
message: string;
|
|
15
|
+
fix: string;
|
|
16
|
+
severity: "error" | "warning";
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
7
19
|
governanceVersionUsed: string;
|
|
8
20
|
manifestVersionUsed: string;
|
|
21
|
+
policyVersionUsed: string;
|
|
9
22
|
timestamp: string;
|
|
10
23
|
versionLineage: VersionLineage;
|
|
11
24
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type CSSProperties } from "react";
|
|
2
|
+
type ChartDatum = Record<string, string | number>;
|
|
3
|
+
interface BaseChartProps {
|
|
4
|
+
data: ChartDatum[];
|
|
5
|
+
height?: number;
|
|
6
|
+
autoFit?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
interface CartesianChartProps extends BaseChartProps {
|
|
11
|
+
xField?: string;
|
|
12
|
+
yField?: string;
|
|
13
|
+
seriesField?: string;
|
|
14
|
+
}
|
|
15
|
+
interface PieChartProps extends BaseChartProps {
|
|
16
|
+
angleField?: string;
|
|
17
|
+
colorField?: string;
|
|
18
|
+
}
|
|
19
|
+
interface ScatterChartProps extends BaseChartProps {
|
|
20
|
+
xField?: string;
|
|
21
|
+
yField?: string;
|
|
22
|
+
colorField?: string;
|
|
23
|
+
sizeField?: string;
|
|
24
|
+
}
|
|
25
|
+
declare function UDSLineChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const UDSLineChart: import("react").MemoExoticComponent<typeof UDSLineChartComponent>;
|
|
27
|
+
declare function UDSBarChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const UDSBarChart: import("react").MemoExoticComponent<typeof UDSBarChartComponent>;
|
|
29
|
+
declare function UDSPieChartComponent({ data, angleField, colorField, height, autoFit, className, style, }: PieChartProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare const UDSPieChart: import("react").MemoExoticComponent<typeof UDSPieChartComponent>;
|
|
31
|
+
declare function UDSDoughnutChartComponent({ data, angleField, colorField, height, autoFit, className, style, }: PieChartProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare const UDSDoughnutChart: import("react").MemoExoticComponent<typeof UDSDoughnutChartComponent>;
|
|
33
|
+
declare function UDSScatterChartComponent({ data, xField, yField, colorField, sizeField, height, autoFit, className, style, }: ScatterChartProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const UDSScatterChart: import("react").MemoExoticComponent<typeof UDSScatterChartComponent>;
|
|
35
|
+
export declare function UDSBubbleChart(props: ScatterChartProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function UDSRadarChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare const UDSRadarChart: import("react").MemoExoticComponent<typeof UDSRadarChartComponent>;
|
|
38
|
+
declare function UDSPolarAreaChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const UDSPolarAreaChart: import("react").MemoExoticComponent<typeof UDSPolarAreaChartComponent>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { UDSBarChart, UDSBubbleChart, UDSDoughnutChart, UDSLineChart, UDSPieChart, UDSPolarAreaChart, UDSRadarChart, UDSScatterChart, } from "./BizChartsAdapters";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ButtonProps } from "./Button.types";
|
|
2
2
|
import "./_button.scss";
|
|
3
|
-
export default function Button({ label, appearance, layout, size, icon, iconSize, icons, children, tracking, className, onClick, disabled, "aria-label": ariaLabel, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default function Button({ label, appearance, layout, size, icon, iconSize, icons, children, tracking, loading, className, onClick, disabled, "aria-label": ariaLabel, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "react";
|
|
2
|
+
import type { ButtonLayout, ButtonProps, ButtonSize } from "../Button/Button.types";
|
|
3
|
+
export interface ButtonGroupOption {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
layout?: ButtonLayout;
|
|
7
|
+
size?: ButtonSize;
|
|
8
|
+
icon?: ButtonProps["icon"];
|
|
9
|
+
iconSize?: number;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
onClick?: ButtonProps["onClick"];
|
|
13
|
+
}
|
|
14
|
+
export interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
options?: ButtonGroupOption[];
|
|
16
|
+
orientation?: "horizontal" | "vertical";
|
|
17
|
+
size?: ButtonSize;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "./_checkbox-group.scss";
|
|
2
|
+
import type { CheckboxGroupProps } from "./CheckboxGroup.types";
|
|
3
|
+
export declare function CheckboxGroup({ options, values, defaultValues, onChange, label, orientation, disabled, className, ...rest }: CheckboxGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface CheckboxGroupOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface CheckboxGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
options: CheckboxGroupOption[];
|
|
9
|
+
values?: string[];
|
|
10
|
+
defaultValues?: string[];
|
|
11
|
+
onChange?: (values: string[]) => void;
|
|
12
|
+
label?: ReactNode;
|
|
13
|
+
orientation?: "vertical" | "horizontal";
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface ChecklistItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
completed?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ChecklistProps extends HTMLAttributes<HTMLElement> {
|
|
9
|
+
title: ReactNode;
|
|
10
|
+
items: ChecklistItem[];
|
|
11
|
+
activeItemId?: string;
|
|
12
|
+
onItemSelect?: (item: ChecklistItem, index: number) => void;
|
|
13
|
+
}
|
|
@@ -3,8 +3,9 @@ import type { ChipProps } from "./Chip.types";
|
|
|
3
3
|
/**
|
|
4
4
|
* Chip component for displaying labels, tags, or filters
|
|
5
5
|
* @param {string} label - The text content of the chip
|
|
6
|
-
* @param {
|
|
7
|
-
* @param {
|
|
6
|
+
* @param {boolean} selected - Selected state (unselected by default)
|
|
7
|
+
* @param {boolean} rounded - Shape toggle: true (fully rounded), false (less rounded)
|
|
8
|
+
* @param {string} size - Size variant: 'default', 'compact', or 'mini'
|
|
8
9
|
* @param {string} iconPlacement - Icon placement: 'both', 'left', 'right', or 'none'
|
|
9
10
|
* @param {string} icon - Icon name to display (when iconPlacement is not 'none')
|
|
10
11
|
* @param {number|string} badge - Badge count to display
|
|
@@ -14,4 +15,4 @@ import type { ChipProps } from "./Chip.types";
|
|
|
14
15
|
* @param {boolean} disabled - Whether the chip is disabled
|
|
15
16
|
* @param {object} props - Additional props to pass to the chip element
|
|
16
17
|
*/
|
|
17
|
-
export default function Chip({ label,
|
|
18
|
+
export default function Chip({ label, selected, rounded, size, iconPlacement, icon, badge, badgeVariant, className, onClick, disabled, ...props }: ChipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import type { HTMLAttributes, MouseEventHandler, ReactNode } from "react";
|
|
2
|
+
import type { BadgeVariant } from "../Badge/Badge.types";
|
|
3
|
+
export type ChipSize = "default" | "compact" | "mini";
|
|
4
|
+
export type ChipIconPlacement = "both" | "left" | "right" | "none";
|
|
5
|
+
export interface ChipProps extends HTMLAttributes<HTMLElement> {
|
|
6
|
+
label?: ReactNode;
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
rounded?: boolean;
|
|
9
|
+
size?: ChipSize;
|
|
10
|
+
iconPlacement?: ChipIconPlacement;
|
|
7
11
|
icon?: string | ReactNode;
|
|
8
|
-
badge?:
|
|
9
|
-
badgeVariant?:
|
|
12
|
+
badge?: number | string;
|
|
13
|
+
badgeVariant?: BadgeVariant;
|
|
10
14
|
className?: string;
|
|
11
|
-
onClick?:
|
|
15
|
+
onClick?: MouseEventHandler<HTMLElement>;
|
|
12
16
|
disabled?: boolean;
|
|
13
17
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { DateRangeInputProps } from "./DateRangeInput.types";
|
|
2
|
+
import "./_date-range-input.scss";
|
|
3
|
+
export declare function DateRangeInput({ startValue, endValue, onStartChange, onEndChange, startPlaceholder, endPlaceholder, startLabel, endLabel, size, state, disabled, className, ...rest }: DateRangeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { TextInputProps, TextInputSize, TextInputState } from "../TextInput";
|
|
3
|
+
export interface DateRangeInputProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
startValue?: TextInputProps["value"];
|
|
5
|
+
endValue?: TextInputProps["value"];
|
|
6
|
+
onStartChange?: TextInputProps["onChange"];
|
|
7
|
+
onEndChange?: TextInputProps["onChange"];
|
|
8
|
+
startPlaceholder?: string;
|
|
9
|
+
endPlaceholder?: string;
|
|
10
|
+
startLabel?: ReactNode;
|
|
11
|
+
endLabel?: ReactNode;
|
|
12
|
+
size?: TextInputSize;
|
|
13
|
+
state?: TextInputState;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type DialogIntent = "info" | "success" | "warning" | "destructive";
|
|
2
3
|
export interface DialogProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
4
|
open?: boolean;
|
|
4
|
-
onClose?: (
|
|
5
|
-
intent?:
|
|
6
|
-
icon?: string
|
|
7
|
-
title?:
|
|
8
|
-
description?:
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
intent?: DialogIntent;
|
|
7
|
+
icon?: string;
|
|
8
|
+
title?: ReactNode;
|
|
9
|
+
description?: ReactNode;
|
|
9
10
|
confirmLabel?: string;
|
|
10
11
|
cancelLabel?: string;
|
|
11
|
-
onConfirm?: (
|
|
12
|
-
onCancel?: (
|
|
12
|
+
onConfirm?: () => void;
|
|
13
|
+
onCancel?: () => void;
|
|
13
14
|
showCancel?: boolean;
|
|
14
15
|
loading?: boolean;
|
|
15
16
|
closeOnBackdrop?: boolean;
|
|
16
17
|
closeOnEscape?: boolean;
|
|
17
|
-
container?:
|
|
18
|
+
container?: HTMLElement;
|
|
18
19
|
className?: string;
|
|
19
20
|
children?: ReactNode;
|
|
20
21
|
}
|
|
@@ -14,4 +14,4 @@ import type { FieldProps } from "./Field.types";
|
|
|
14
14
|
* @param {React.ReactNode} children - The input element to wrap
|
|
15
15
|
* @param {object} props - Additional props to pass to the field wrapper
|
|
16
16
|
*/
|
|
17
|
-
export default function Field({ label, required, helperMessage,
|
|
17
|
+
export default function Field({ label, state, required, helperMessage, maxLength, value, infoIcon, onInfoClick, id, className, children, ...props }: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type FieldState = "default" | "error";
|
|
3
|
+
export interface FieldProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
state?: FieldState;
|
|
4
6
|
required?: boolean;
|
|
5
|
-
helperMessage?:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
id?:
|
|
7
|
+
helperMessage?: ReactNode;
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
value?: string | number;
|
|
10
|
+
infoIcon?: string;
|
|
11
|
+
onInfoClick?: () => void;
|
|
12
|
+
id?: string;
|
|
11
13
|
className?: string;
|
|
12
14
|
children?: ReactNode;
|
|
13
15
|
}
|
|
@@ -12,4 +12,4 @@ import type { FileUploadProps } from "./FileUpload.types";
|
|
|
12
12
|
* @param {string} className - Additional CSS classes
|
|
13
13
|
* @param {object} props - Additional props to pass to the file input
|
|
14
14
|
*/
|
|
15
|
-
export default function FileUpload({ onFileSelect, accept, maxSize, acceptText, instructionText, multiple, disabled, className, ...props }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default function FileUpload({ onFileSelect, accept, maxSize, acceptText, instructionText, size, multiple, disabled, className, ...props }: FileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { InputHTMLAttributes } from "react";
|
|
2
|
+
export type FileUploadSize = "default" | "small";
|
|
2
3
|
export interface FileUploadProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
4
|
onFileSelect?: (...args: unknown[]) => void;
|
|
4
5
|
accept?: unknown[];
|
|
5
6
|
maxSize?: number;
|
|
6
7
|
acceptText?: unknown;
|
|
7
8
|
instructionText?: string;
|
|
9
|
+
size?: FileUploadSize;
|
|
8
10
|
multiple?: boolean;
|
|
9
11
|
disabled?: boolean;
|
|
10
12
|
className?: string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import "./_number-input.scss";
|
|
2
|
+
import type { NumberInputProps } from "./NumberInput.types";
|
|
3
|
+
export declare function NumberInput({ value, onChange, placeholder, size, state, disabled, id, label, helperText, errorText, className, "aria-describedby": ariaDescribedBy, ...props }: NumberInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,8 +5,10 @@ import type { PaginationProps } from "./Pagination.types";
|
|
|
5
5
|
* @param {number} currentPage - Current active page (1-indexed)
|
|
6
6
|
* @param {number} totalPages - Total number of pages
|
|
7
7
|
* @param {function} onPageChange - Callback when page changes: (page: number) => void
|
|
8
|
-
* @param {string} variant - Variant style: "default" | "
|
|
9
|
-
* @param {boolean}
|
|
8
|
+
* @param {string} variant - Variant style: "default" | "line"
|
|
9
|
+
* @param {boolean} showJumpInput - Toggle jump-to-page input
|
|
10
|
+
* @param {boolean} showDoubleButtons - Toggle first/last page buttons
|
|
11
|
+
* @param {boolean} showFirstLast - Backward-compatible alias for showDoubleButtons
|
|
10
12
|
* @param {string} className - Additional CSS classes
|
|
11
13
|
*/
|
|
12
|
-
export default function Pagination({ currentPage, totalPages, onPageChange, variant, showFirstLast, className, }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default function Pagination({ currentPage, totalPages, onPageChange, variant, showJumpInput, showDoubleButtons, showFirstLast, className, }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { ButtonHTMLAttributes } from "react";
|
|
2
|
+
export type PaginationVariant = "default" | "line";
|
|
2
3
|
export interface PaginationProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
4
|
currentPage?: number;
|
|
4
5
|
totalPages?: number;
|
|
5
6
|
onPageChange?: (...args: unknown[]) => void;
|
|
6
|
-
variant?:
|
|
7
|
+
variant?: PaginationVariant;
|
|
8
|
+
showJumpInput?: boolean;
|
|
9
|
+
showDoubleButtons?: boolean;
|
|
7
10
|
showFirstLast?: boolean;
|
|
8
11
|
className?: string;
|
|
9
12
|
}
|