@flipdish/ui-library 0.2.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.
- package/README.md +338 -0
- package/dist/components/atoms/Avatar/avatar.utils.d.ts +10 -0
- package/dist/components/atoms/Avatar/avatar.utils.d.ts.map +1 -0
- package/dist/components/atoms/Avatar/components/avatar-add-button.d.ts +9 -0
- package/dist/components/atoms/Avatar/components/avatar-add-button.d.ts.map +1 -0
- package/dist/components/atoms/Avatar/components/avatar-company-icon.d.ts +8 -0
- package/dist/components/atoms/Avatar/components/avatar-company-icon.d.ts.map +1 -0
- package/dist/components/atoms/Avatar/components/avatar-count.cjs +9 -0
- package/dist/components/atoms/Avatar/components/avatar-count.cjs.map +1 -0
- package/dist/components/atoms/Avatar/components/avatar-count.d.ts +7 -0
- package/dist/components/atoms/Avatar/components/avatar-count.d.ts.map +1 -0
- package/dist/components/atoms/Avatar/components/avatar-count.js +7 -0
- package/dist/components/atoms/Avatar/components/avatar-count.js.map +1 -0
- package/dist/components/atoms/Avatar/components/avatar-online-indicator.cjs +21 -0
- package/dist/components/atoms/Avatar/components/avatar-online-indicator.cjs.map +1 -0
- package/dist/components/atoms/Avatar/components/avatar-online-indicator.d.ts +8 -0
- package/dist/components/atoms/Avatar/components/avatar-online-indicator.d.ts.map +1 -0
- package/dist/components/atoms/Avatar/components/avatar-online-indicator.js +19 -0
- package/dist/components/atoms/Avatar/components/avatar-online-indicator.js.map +1 -0
- package/dist/components/atoms/Avatar/components/verified-tick.cjs +21 -0
- package/dist/components/atoms/Avatar/components/verified-tick.cjs.map +1 -0
- package/dist/components/atoms/Avatar/components/verified-tick.d.ts +7 -0
- package/dist/components/atoms/Avatar/components/verified-tick.d.ts.map +1 -0
- package/dist/components/atoms/Avatar/components/verified-tick.js +19 -0
- package/dist/components/atoms/Avatar/components/verified-tick.js.map +1 -0
- package/dist/components/atoms/Avatar/index.cjs +54 -0
- package/dist/components/atoms/Avatar/index.cjs.map +1 -0
- package/dist/components/atoms/Avatar/index.d.ts +65 -0
- package/dist/components/atoms/Avatar/index.d.ts.map +1 -0
- package/dist/components/atoms/Avatar/index.js +52 -0
- package/dist/components/atoms/Avatar/index.js.map +1 -0
- package/dist/components/atoms/Badge/badge.types.cjs +10 -0
- package/dist/components/atoms/Badge/badge.types.cjs.map +1 -0
- package/dist/components/atoms/Badge/badge.types.d.ts +22 -0
- package/dist/components/atoms/Badge/badge.types.d.ts.map +1 -0
- package/dist/components/atoms/Badge/badge.types.js +8 -0
- package/dist/components/atoms/Badge/badge.types.js.map +1 -0
- package/dist/components/atoms/Badge/index.cjs +274 -0
- package/dist/components/atoms/Badge/index.cjs.map +1 -0
- package/dist/components/atoms/Badge/index.d.ts +129 -0
- package/dist/components/atoms/Badge/index.d.ts.map +1 -0
- package/dist/components/atoms/Badge/index.js +265 -0
- package/dist/components/atoms/Badge/index.js.map +1 -0
- package/dist/components/atoms/Button/index.cjs +164 -0
- package/dist/components/atoms/Button/index.cjs.map +1 -0
- package/dist/components/atoms/Button/index.d.ts +111 -0
- package/dist/components/atoms/Button/index.d.ts.map +1 -0
- package/dist/components/atoms/Button/index.js +161 -0
- package/dist/components/atoms/Button/index.js.map +1 -0
- package/dist/components/atoms/Checkbox/index.cjs +35 -0
- package/dist/components/atoms/Checkbox/index.cjs.map +1 -0
- package/dist/components/atoms/Checkbox/index.d.ts +26 -0
- package/dist/components/atoms/Checkbox/index.d.ts.map +1 -0
- package/dist/components/atoms/Checkbox/index.js +32 -0
- package/dist/components/atoms/Checkbox/index.js.map +1 -0
- package/dist/components/atoms/Divider/index.cjs +17 -0
- package/dist/components/atoms/Divider/index.cjs.map +1 -0
- package/dist/components/atoms/Divider/index.d.ts +17 -0
- package/dist/components/atoms/Divider/index.d.ts.map +1 -0
- package/dist/components/atoms/Divider/index.js +15 -0
- package/dist/components/atoms/Divider/index.js.map +1 -0
- package/dist/components/atoms/Dot/index.cjs +29 -0
- package/dist/components/atoms/Dot/index.cjs.map +1 -0
- package/dist/components/atoms/Dot/index.d.ts +10 -0
- package/dist/components/atoms/Dot/index.d.ts.map +1 -0
- package/dist/components/atoms/Dot/index.js +27 -0
- package/dist/components/atoms/Dot/index.js.map +1 -0
- package/dist/components/atoms/FeaturedIcon/index.cjs +122 -0
- package/dist/components/atoms/FeaturedIcon/index.cjs.map +1 -0
- package/dist/components/atoms/FeaturedIcon/index.d.ts +15 -0
- package/dist/components/atoms/FeaturedIcon/index.d.ts.map +1 -0
- package/dist/components/atoms/FeaturedIcon/index.js +120 -0
- package/dist/components/atoms/FeaturedIcon/index.js.map +1 -0
- package/dist/components/atoms/Input/components/hint-text.cjs +17 -0
- package/dist/components/atoms/Input/components/hint-text.cjs.map +1 -0
- package/dist/components/atoms/Input/components/hint-text.d.ts +15 -0
- package/dist/components/atoms/Input/components/hint-text.d.ts.map +1 -0
- package/dist/components/atoms/Input/components/hint-text.js +15 -0
- package/dist/components/atoms/Input/components/hint-text.js.map +1 -0
- package/dist/components/atoms/Input/components/label.cjs +28 -0
- package/dist/components/atoms/Input/components/label.cjs.map +1 -0
- package/dist/components/atoms/Input/components/label.d.ts +16 -0
- package/dist/components/atoms/Input/components/label.d.ts.map +1 -0
- package/dist/components/atoms/Input/components/label.js +26 -0
- package/dist/components/atoms/Input/components/label.js.map +1 -0
- package/dist/components/atoms/Input/index.cjs +78 -0
- package/dist/components/atoms/Input/index.cjs.map +1 -0
- package/dist/components/atoms/Input/index.d.ts +60 -0
- package/dist/components/atoms/Input/index.d.ts.map +1 -0
- package/dist/components/atoms/Input/index.js +72 -0
- package/dist/components/atoms/Input/index.js.map +1 -0
- package/dist/components/atoms/LoadingIndicator/index.cjs +54 -0
- package/dist/components/atoms/LoadingIndicator/index.cjs.map +1 -0
- package/dist/components/atoms/LoadingIndicator/index.d.ts +24 -0
- package/dist/components/atoms/LoadingIndicator/index.d.ts.map +1 -0
- package/dist/components/atoms/LoadingIndicator/index.js +52 -0
- package/dist/components/atoms/LoadingIndicator/index.js.map +1 -0
- package/dist/components/atoms/RadioButton/index.cjs +43 -0
- package/dist/components/atoms/RadioButton/index.cjs.map +1 -0
- package/dist/components/atoms/RadioButton/index.d.ts +33 -0
- package/dist/components/atoms/RadioButton/index.d.ts.map +1 -0
- package/dist/components/atoms/RadioButton/index.js +39 -0
- package/dist/components/atoms/RadioButton/index.js.map +1 -0
- package/dist/components/atoms/Toggle/index.cjs +63 -0
- package/dist/components/atoms/Toggle/index.cjs.map +1 -0
- package/dist/components/atoms/Toggle/index.d.ts +26 -0
- package/dist/components/atoms/Toggle/index.d.ts.map +1 -0
- package/dist/components/atoms/Toggle/index.js +60 -0
- package/dist/components/atoms/Toggle/index.js.map +1 -0
- package/dist/components/atoms/Tooltip/index.cjs +22 -0
- package/dist/components/atoms/Tooltip/index.cjs.map +1 -0
- package/dist/components/atoms/Tooltip/index.d.ts +30 -0
- package/dist/components/atoms/Tooltip/index.d.ts.map +1 -0
- package/dist/components/atoms/Tooltip/index.js +19 -0
- package/dist/components/atoms/Tooltip/index.js.map +1 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-account-item.cjs +22 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-account-item.cjs.map +1 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-account-item.d.ts +13 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-account-item.d.ts.map +1 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-account-item.js +20 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-account-item.js.map +1 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.cjs +44 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.cjs.map +1 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.d.ts +19 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.d.ts.map +1 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.js +42 -0
- package/dist/components/molecules/Breadcrumbs/components/breadcrumb-item.js.map +1 -0
- package/dist/components/molecules/Breadcrumbs/index.cjs +38 -0
- package/dist/components/molecules/Breadcrumbs/index.cjs.map +1 -0
- package/dist/components/molecules/Breadcrumbs/index.d.ts +25 -0
- package/dist/components/molecules/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/molecules/Breadcrumbs/index.js +35 -0
- package/dist/components/molecules/Breadcrumbs/index.js.map +1 -0
- package/dist/components/molecules/ButtonGroup/index.cjs +64 -0
- package/dist/components/molecules/ButtonGroup/index.cjs.map +1 -0
- package/dist/components/molecules/ButtonGroup/index.d.ts +51 -0
- package/dist/components/molecules/ButtonGroup/index.d.ts.map +1 -0
- package/dist/components/molecules/ButtonGroup/index.js +60 -0
- package/dist/components/molecules/ButtonGroup/index.js.map +1 -0
- package/dist/components/molecules/Dropdown/index.cjs +66 -0
- package/dist/components/molecules/Dropdown/index.cjs.map +1 -0
- package/dist/components/molecules/Dropdown/index.d.ts +39 -0
- package/dist/components/molecules/Dropdown/index.d.ts.map +1 -0
- package/dist/components/molecules/Dropdown/index.js +64 -0
- package/dist/components/molecules/Dropdown/index.js.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-avatar.cjs +14 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-avatar.cjs.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-avatar.d.ts +16 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-avatar.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-avatar.js +12 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-avatar.js.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-checkbox.cjs +13 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-checkbox.cjs.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-checkbox.d.ts +9 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-checkbox.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-checkbox.js +11 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-checkbox.js.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-card.cjs +15 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-card.cjs.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-card.d.ts +21 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-card.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-card.js +13 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-card.js.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-simple.cjs +14 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-simple.cjs.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-simple.d.ts +9 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-simple.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-simple.js +12 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-icon-simple.js.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-payment-icon.cjs +14 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-payment-icon.cjs.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-payment-icon.d.ts +16 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-payment-icon.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-payment-icon.js +12 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-payment-icon.js.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-radio-button.cjs +12 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-radio-button.cjs.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-radio-button.d.ts +9 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-radio-button.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-radio-button.js +10 -0
- package/dist/components/molecules/RadioGroup/components/radio-group-radio-button.js.map +1 -0
- package/dist/components/molecules/RadioGroup/index.cjs +18 -0
- package/dist/components/molecules/RadioGroup/index.cjs.map +1 -0
- package/dist/components/molecules/RadioGroup/index.d.ts +7 -0
- package/dist/components/molecules/RadioGroup/index.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/index.js +7 -0
- package/dist/components/molecules/RadioGroup/index.js.map +1 -0
- package/dist/components/molecules/RadioGroup/radioGroup.types.d.ts +12 -0
- package/dist/components/molecules/RadioGroup/radioGroup.types.d.ts.map +1 -0
- package/dist/components/molecules/SectionHeader/index.cjs +20 -0
- package/dist/components/molecules/SectionHeader/index.cjs.map +1 -0
- package/dist/components/molecules/SectionHeader/index.d.ts +9 -0
- package/dist/components/molecules/SectionHeader/index.d.ts.map +1 -0
- package/dist/components/molecules/SectionHeader/index.js +18 -0
- package/dist/components/molecules/SectionHeader/index.js.map +1 -0
- package/dist/components/molecules/Select/components/combobox.cjs +47 -0
- package/dist/components/molecules/Select/components/combobox.cjs.map +1 -0
- package/dist/components/molecules/Select/components/combobox.d.ts +15 -0
- package/dist/components/molecules/Select/components/combobox.d.ts.map +1 -0
- package/dist/components/molecules/Select/components/combobox.js +45 -0
- package/dist/components/molecules/Select/components/combobox.js.map +1 -0
- package/dist/components/molecules/Select/components/popover.cjs +14 -0
- package/dist/components/molecules/Select/components/popover.cjs.map +1 -0
- package/dist/components/molecules/Select/components/popover.d.ts +8 -0
- package/dist/components/molecules/Select/components/popover.d.ts.map +1 -0
- package/dist/components/molecules/Select/components/popover.js +12 -0
- package/dist/components/molecules/Select/components/popover.js.map +1 -0
- package/dist/components/molecules/Select/components/select-item.cjs +54 -0
- package/dist/components/molecules/Select/components/select-item.cjs.map +1 -0
- package/dist/components/molecules/Select/components/select-item.d.ts +11 -0
- package/dist/components/molecules/Select/components/select-item.d.ts.map +1 -0
- package/dist/components/molecules/Select/components/select-item.js +52 -0
- package/dist/components/molecules/Select/components/select-item.js.map +1 -0
- package/dist/components/molecules/Select/components/select-shared.cjs +20 -0
- package/dist/components/molecules/Select/components/select-shared.cjs.map +1 -0
- package/dist/components/molecules/Select/components/select-shared.d.ts +59 -0
- package/dist/components/molecules/Select/components/select-shared.d.ts.map +1 -0
- package/dist/components/molecules/Select/components/select-shared.js +17 -0
- package/dist/components/molecules/Select/components/select-shared.js.map +1 -0
- package/dist/components/molecules/Select/index.cjs +37 -0
- package/dist/components/molecules/Select/index.cjs.map +1 -0
- package/dist/components/molecules/Select/index.d.ts +19 -0
- package/dist/components/molecules/Select/index.d.ts.map +1 -0
- package/dist/components/molecules/Select/index.js +33 -0
- package/dist/components/molecules/Select/index.js.map +1 -0
- package/dist/components/organisms/PageHeader/components/page-header-simple.cjs +14 -0
- package/dist/components/organisms/PageHeader/components/page-header-simple.cjs.map +1 -0
- package/dist/components/organisms/PageHeader/components/page-header-simple.d.ts +24 -0
- package/dist/components/organisms/PageHeader/components/page-header-simple.d.ts.map +1 -0
- package/dist/components/organisms/PageHeader/components/page-header-simple.js +12 -0
- package/dist/components/organisms/PageHeader/components/page-header-simple.js.map +1 -0
- package/dist/components/organisms/PageHeader/index.cjs +8 -0
- package/dist/components/organisms/PageHeader/index.cjs.map +1 -0
- package/dist/components/organisms/PageHeader/index.d.ts +7 -0
- package/dist/components/organisms/PageHeader/index.d.ts.map +1 -0
- package/dist/components/organisms/PageHeader/index.js +2 -0
- package/dist/components/organisms/PageHeader/index.js.map +1 -0
- package/dist/components/templates/NotFoundPage/index.cjs +19 -0
- package/dist/components/templates/NotFoundPage/index.cjs.map +1 -0
- package/dist/components/templates/NotFoundPage/index.d.ts +25 -0
- package/dist/components/templates/NotFoundPage/index.d.ts.map +1 -0
- package/dist/components/templates/NotFoundPage/index.js +17 -0
- package/dist/components/templates/NotFoundPage/index.js.map +1 -0
- package/dist/components/templates/PageLayout/index.cjs +30 -0
- package/dist/components/templates/PageLayout/index.cjs.map +1 -0
- package/dist/components/templates/PageLayout/index.d.ts +43 -0
- package/dist/components/templates/PageLayout/index.d.ts.map +1 -0
- package/dist/components/templates/PageLayout/index.js +28 -0
- package/dist/components/templates/PageLayout/index.js.map +1 -0
- package/dist/hooks/useResizeObserver/index.cjs +47 -0
- package/dist/hooks/useResizeObserver/index.cjs.map +1 -0
- package/dist/hooks/useResizeObserver/index.d.ts +25 -0
- package/dist/hooks/useResizeObserver/index.d.ts.map +1 -0
- package/dist/hooks/useResizeObserver/index.js +45 -0
- package/dist/hooks/useResizeObserver/index.js.map +1 -0
- package/dist/providers/ErrorBoundary/index.cjs +36 -0
- package/dist/providers/ErrorBoundary/index.cjs.map +1 -0
- package/dist/providers/ErrorBoundary/index.d.ts +32 -0
- package/dist/providers/ErrorBoundary/index.d.ts.map +1 -0
- package/dist/providers/ErrorBoundary/index.js +34 -0
- package/dist/providers/ErrorBoundary/index.js.map +1 -0
- package/dist/src/components/atoms/Avatar/avatar.utils.d.ts +10 -0
- package/dist/src/components/atoms/Avatar/avatar.utils.d.ts.map +1 -0
- package/dist/src/components/atoms/Avatar/components/avatar-add-button.d.ts +9 -0
- package/dist/src/components/atoms/Avatar/components/avatar-add-button.d.ts.map +1 -0
- package/dist/src/components/atoms/Avatar/components/avatar-company-icon.d.ts +8 -0
- package/dist/src/components/atoms/Avatar/components/avatar-company-icon.d.ts.map +1 -0
- package/dist/src/components/atoms/Avatar/components/avatar-count.d.ts +7 -0
- package/dist/src/components/atoms/Avatar/components/avatar-count.d.ts.map +1 -0
- package/dist/src/components/atoms/Avatar/components/avatar-online-indicator.d.ts +8 -0
- package/dist/src/components/atoms/Avatar/components/avatar-online-indicator.d.ts.map +1 -0
- package/dist/src/components/atoms/Avatar/components/verified-tick.d.ts +7 -0
- package/dist/src/components/atoms/Avatar/components/verified-tick.d.ts.map +1 -0
- package/dist/src/components/atoms/Avatar/index.d.ts +65 -0
- package/dist/src/components/atoms/Avatar/index.d.ts.map +1 -0
- package/dist/src/components/atoms/Badge/badge.types.d.ts +22 -0
- package/dist/src/components/atoms/Badge/badge.types.d.ts.map +1 -0
- package/dist/src/components/atoms/Badge/index.d.ts +129 -0
- package/dist/src/components/atoms/Badge/index.d.ts.map +1 -0
- package/dist/src/components/atoms/Button/index.d.ts +111 -0
- package/dist/src/components/atoms/Button/index.d.ts.map +1 -0
- package/dist/src/components/atoms/Checkbox/index.d.ts +26 -0
- package/dist/src/components/atoms/Checkbox/index.d.ts.map +1 -0
- package/dist/src/components/atoms/Divider/index.d.ts +17 -0
- package/dist/src/components/atoms/Divider/index.d.ts.map +1 -0
- package/dist/src/components/atoms/Dot/index.d.ts +5 -0
- package/dist/src/components/atoms/Dot/index.d.ts.map +1 -0
- package/dist/src/components/atoms/FeaturedIcon/index.d.ts +15 -0
- package/dist/src/components/atoms/FeaturedIcon/index.d.ts.map +1 -0
- package/dist/src/components/atoms/Input/components/hint-text.d.ts +15 -0
- package/dist/src/components/atoms/Input/components/hint-text.d.ts.map +1 -0
- package/dist/src/components/atoms/Input/components/label.d.ts +16 -0
- package/dist/src/components/atoms/Input/components/label.d.ts.map +1 -0
- package/dist/src/components/atoms/Input/index.d.ts +60 -0
- package/dist/src/components/atoms/Input/index.d.ts.map +1 -0
- package/dist/src/components/atoms/LoadingIndicator/index.d.ts +19 -0
- package/dist/src/components/atoms/LoadingIndicator/index.d.ts.map +1 -0
- package/dist/src/components/atoms/RadioButton/index.d.ts +33 -0
- package/dist/src/components/atoms/RadioButton/index.d.ts.map +1 -0
- package/dist/src/components/atoms/Toggle/index.d.ts +21 -0
- package/dist/src/components/atoms/Toggle/index.d.ts.map +1 -0
- package/dist/src/components/atoms/Tooltip/index.d.ts +30 -0
- package/dist/src/components/atoms/Tooltip/index.d.ts.map +1 -0
- package/dist/src/components/molecules/Breadcrumbs/components/breadcrumb-account-item.d.ts +13 -0
- package/dist/src/components/molecules/Breadcrumbs/components/breadcrumb-account-item.d.ts.map +1 -0
- package/dist/src/components/molecules/Breadcrumbs/components/breadcrumb-item.d.ts +19 -0
- package/dist/src/components/molecules/Breadcrumbs/components/breadcrumb-item.d.ts.map +1 -0
- package/dist/src/components/molecules/Breadcrumbs/index.d.ts +25 -0
- package/dist/src/components/molecules/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/src/components/molecules/ButtonGroup/index.d.ts +41 -0
- package/dist/src/components/molecules/ButtonGroup/index.d.ts.map +1 -0
- package/dist/src/components/molecules/Dropdown/index.d.ts +35 -0
- package/dist/src/components/molecules/Dropdown/index.d.ts.map +1 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-avatar.d.ts +16 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-avatar.d.ts.map +1 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-checkbox.d.ts +9 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-checkbox.d.ts.map +1 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-icon-card.d.ts +21 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-icon-card.d.ts.map +1 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-icon-simple.d.ts +19 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-icon-simple.d.ts.map +1 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-payment-icon.d.ts +16 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-payment-icon.d.ts.map +1 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-radio-button.d.ts +9 -0
- package/dist/src/components/molecules/RadioGroup/components/radio-group-radio-button.d.ts.map +1 -0
- package/dist/src/components/molecules/RadioGroup/index.d.ts +7 -0
- package/dist/src/components/molecules/RadioGroup/index.d.ts.map +1 -0
- package/dist/src/components/molecules/RadioGroup/radioGroup.types.d.ts +12 -0
- package/dist/src/components/molecules/RadioGroup/radioGroup.types.d.ts.map +1 -0
- package/dist/src/components/molecules/SectionHeader/index.d.ts +9 -0
- package/dist/src/components/molecules/SectionHeader/index.d.ts.map +1 -0
- package/dist/src/components/molecules/Select/components/combobox.d.ts +15 -0
- package/dist/src/components/molecules/Select/components/combobox.d.ts.map +1 -0
- package/dist/src/components/molecules/Select/components/popover.d.ts +8 -0
- package/dist/src/components/molecules/Select/components/popover.d.ts.map +1 -0
- package/dist/src/components/molecules/Select/components/select-item.d.ts +11 -0
- package/dist/src/components/molecules/Select/components/select-item.d.ts.map +1 -0
- package/dist/src/components/molecules/Select/components/select-shared.d.ts +59 -0
- package/dist/src/components/molecules/Select/components/select-shared.d.ts.map +1 -0
- package/dist/src/components/molecules/Select/index.d.ts +19 -0
- package/dist/src/components/molecules/Select/index.d.ts.map +1 -0
- package/dist/src/components/organisms/PageHeader/components/page-header-simple.d.ts +24 -0
- package/dist/src/components/organisms/PageHeader/components/page-header-simple.d.ts.map +1 -0
- package/dist/src/components/organisms/PageHeader/index.d.ts +2 -0
- package/dist/src/components/organisms/PageHeader/index.d.ts.map +1 -0
- package/dist/src/components/templates/NotFoundPage/index.d.ts +25 -0
- package/dist/src/components/templates/NotFoundPage/index.d.ts.map +1 -0
- package/dist/src/components/templates/PageLayout/index.d.ts +43 -0
- package/dist/src/components/templates/PageLayout/index.d.ts.map +1 -0
- package/dist/src/hooks/useResizeObserver/index.d.ts +25 -0
- package/dist/src/hooks/useResizeObserver/index.d.ts.map +1 -0
- package/dist/src/providers/ErrorBoundary/index.d.ts +32 -0
- package/dist/src/providers/ErrorBoundary/index.d.ts.map +1 -0
- package/dist/src/utilities/cx/index.d.ts +22 -0
- package/dist/src/utilities/cx/index.d.ts.map +1 -0
- package/dist/src/utilities/isReactComponent/index.d.ts +24 -0
- package/dist/src/utilities/isReactComponent/index.d.ts.map +1 -0
- package/dist/src/utilities/renderUtils/index.d.ts +56 -0
- package/dist/src/utilities/renderUtils/index.d.ts.map +1 -0
- package/dist/styles.css +101 -0
- package/dist/utilities/cx/index.cjs +41 -0
- package/dist/utilities/cx/index.cjs.map +1 -0
- package/dist/utilities/cx/index.d.ts +22 -0
- package/dist/utilities/cx/index.d.ts.map +1 -0
- package/dist/utilities/cx/index.js +38 -0
- package/dist/utilities/cx/index.js.map +1 -0
- package/dist/utilities/isReactComponent/index.cjs +40 -0
- package/dist/utilities/isReactComponent/index.cjs.map +1 -0
- package/dist/utilities/isReactComponent/index.d.ts +24 -0
- package/dist/utilities/isReactComponent/index.d.ts.map +1 -0
- package/dist/utilities/isReactComponent/index.js +35 -0
- package/dist/utilities/isReactComponent/index.js.map +1 -0
- package/dist/utilities/renderUtils/index.cjs +122 -0
- package/dist/utilities/renderUtils/index.cjs.map +1 -0
- package/dist/utilities/renderUtils/index.d.ts +56 -0
- package/dist/utilities/renderUtils/index.d.ts.map +1 -0
- package/dist/utilities/renderUtils/index.js +114 -0
- package/dist/utilities/renderUtils/index.js.map +1 -0
- package/package.json +135 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef } from 'react';
|
|
2
|
+
export declare const SectionHeader: {
|
|
3
|
+
Root: (props: ComponentPropsWithRef<"div">) => import("react").JSX.Element;
|
|
4
|
+
Group: (props: ComponentPropsWithRef<"div">) => import("react").JSX.Element;
|
|
5
|
+
Actions: (props: ComponentPropsWithRef<"div">) => import("react").JSX.Element;
|
|
6
|
+
Heading: (props: ComponentPropsWithRef<"h2">) => import("react").JSX.Element;
|
|
7
|
+
Subheading: (props: ComponentPropsWithRef<"p">) => import("react").JSX.Element;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/SectionHeader/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAgCnD,eAAO,MAAM,aAAa;kBA9BQ,qBAAqB,CAAC,KAAK,CAAC;mBAM3B,qBAAqB,CAAC,KAAK,CAAC;qBAM1B,qBAAqB,CAAC,KAAK,CAAC;qBAM5B,qBAAqB,CAAC,IAAI,CAAC;wBAMxB,qBAAqB,CAAC,GAAG,CAAC;CAYjE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FC, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
import type { ComboBoxProps as AriaComboBoxProps, ListBoxProps as AriaListBoxProps } from 'react-aria-components';
|
|
3
|
+
import { type CommonProps, type SelectItemType } from './select-shared';
|
|
4
|
+
interface ComboBoxProps extends Omit<AriaComboBoxProps<SelectItemType>, 'children' | 'items'>, RefAttributes<HTMLDivElement>, CommonProps {
|
|
5
|
+
shortcut?: boolean;
|
|
6
|
+
items?: SelectItemType[];
|
|
7
|
+
popoverClassName?: string;
|
|
8
|
+
shortcutClassName?: string;
|
|
9
|
+
/** Leading icon component displayed before the input. */
|
|
10
|
+
icon?: FC | ReactNode;
|
|
11
|
+
children: AriaListBoxProps<SelectItemType>['children'];
|
|
12
|
+
}
|
|
13
|
+
export declare const ComboBox: ({ placeholder, shortcut, size, children, items, shortcutClassName, icon, hideRequiredIndicator, ...otherProps }: ComboBoxProps) => import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=combobox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Select/components/combobox.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,EAA0C,SAAS,EAAO,aAAa,EAAE,MAAM,OAAO,CAAC;AAEvG,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAgC,YAAY,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAShJ,OAAO,EAAE,KAAK,WAAW,EAAiB,KAAK,cAAc,EAAS,MAAM,iBAAiB,CAAC;AAE9F,UAAU,aAAc,SAAQ,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,EAAE,WAAW;IACvI,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,yDAAyD;IACzD,IAAI,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC;IACtB,QAAQ,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC;CACxD;AAoFD,eAAO,MAAM,QAAQ,GAAI,iHAUtB,aAAa,gCA4Df,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RefAttributes } from 'react';
|
|
2
|
+
import type { PopoverProps as AriaPopoverProps } from 'react-aria-components';
|
|
3
|
+
interface PopoverProps extends AriaPopoverProps, RefAttributes<HTMLElement> {
|
|
4
|
+
size: 'sm' | 'md' | 'lg';
|
|
5
|
+
}
|
|
6
|
+
export declare const Popover: (props: PopoverProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Select/components/popover.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9E,UAAU,YAAa,SAAQ,gBAAgB,EAAE,aAAa,CAAC,WAAW,CAAC;IACzE,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC1B;AAED,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,gCAyB1C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ListBoxItemProps as AriaListBoxItemProps } from 'react-aria-components';
|
|
2
|
+
import type { SelectItemType } from './select-shared';
|
|
3
|
+
interface SelectItemProps extends Omit<AriaListBoxItemProps<SelectItemType>, 'id'>, SelectItemType {
|
|
4
|
+
/** The selection indicator to be displayed on the item. */
|
|
5
|
+
selectionIndicator?: 'checkmark' | 'checkbox' | 'none';
|
|
6
|
+
/** The alignment of the selection indicator. */
|
|
7
|
+
selectionIndicatorAlign?: 'left' | 'right';
|
|
8
|
+
}
|
|
9
|
+
export declare const SelectItem: ({ label, id, value, avatarUrl, supportingText, isDisabled, icon: Icon, className, children, selectionIndicator, selectionIndicatorAlign, ...props }: SelectItemProps) => import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=select-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-item.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Select/components/select-item.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAEtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AA2BtD,UAAU,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,EAAE,cAAc;IAChG,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;IACvD,gDAAgD;IAChD,uBAAuB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5C;AAED,eAAO,MAAM,UAAU,GAAI,qJAaxB,eAAe,gCA6EjB,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
export type SelectItemType = {
|
|
3
|
+
/** Unique identifier for the item. */
|
|
4
|
+
id: string | number;
|
|
5
|
+
/** The primary display text. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Avatar image URL. */
|
|
8
|
+
avatarUrl?: string;
|
|
9
|
+
/** Whether the item is disabled. */
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
/** Secondary text displayed alongside the label. */
|
|
12
|
+
supportingText?: string;
|
|
13
|
+
/** Leading icon component or element. */
|
|
14
|
+
icon?: FC | ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export interface CommonProps {
|
|
17
|
+
/** Helper text displayed below the input. */
|
|
18
|
+
hint?: string;
|
|
19
|
+
/** Field label displayed above the input. */
|
|
20
|
+
label?: string;
|
|
21
|
+
/** Tooltip text for the help icon next to the label. */
|
|
22
|
+
tooltip?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The size of the component.
|
|
25
|
+
* @default "md"
|
|
26
|
+
*/
|
|
27
|
+
size?: 'sm' | 'md' | 'lg';
|
|
28
|
+
/** Placeholder text when no value is selected. */
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
/** Whether to hide the required indicator from the label. */
|
|
31
|
+
hideRequiredIndicator?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const sizes: {
|
|
34
|
+
sm: {
|
|
35
|
+
root: string;
|
|
36
|
+
withIcon: string;
|
|
37
|
+
text: string;
|
|
38
|
+
textContainer: string;
|
|
39
|
+
shortcut: string;
|
|
40
|
+
};
|
|
41
|
+
md: {
|
|
42
|
+
root: string;
|
|
43
|
+
withIcon: string;
|
|
44
|
+
text: string;
|
|
45
|
+
textContainer: string;
|
|
46
|
+
shortcut: string;
|
|
47
|
+
};
|
|
48
|
+
lg: {
|
|
49
|
+
root: string;
|
|
50
|
+
withIcon: string;
|
|
51
|
+
text: string;
|
|
52
|
+
textContainer: string;
|
|
53
|
+
shortcut: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const SelectContext: import("react").Context<{
|
|
57
|
+
size: "sm" | "md" | "lg";
|
|
58
|
+
}>;
|
|
59
|
+
//# sourceMappingURL=select-shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-shared.d.ts","sourceRoot":"","sources":["../../../../../../src/components/molecules/Select/components/select-shared.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG3C,MAAM,MAAM,cAAc,GAAG;IAC3B,sCAAsC;IACtC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,IAAI,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;CAUjB,CAAC;AAEF,eAAO,MAAM,aAAa;UAAyB,IAAI,GAAG,IAAI,GAAG,IAAI;EAAmB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FC, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
import type { SelectProps as AriaSelectProps } from 'react-aria-components';
|
|
3
|
+
import { ComboBox } from './components/combobox';
|
|
4
|
+
import { SelectItem } from './components/select-item';
|
|
5
|
+
import { type CommonProps, type SelectItemType } from './components/select-shared';
|
|
6
|
+
export { type CommonProps, SelectContext, type SelectItemType, sizes } from './components/select-shared';
|
|
7
|
+
export interface SelectProps extends Omit<AriaSelectProps<SelectItemType>, 'children' | 'items'>, RefAttributes<HTMLDivElement>, CommonProps {
|
|
8
|
+
items?: SelectItemType[];
|
|
9
|
+
popoverClassName?: string;
|
|
10
|
+
icon?: FC | ReactNode;
|
|
11
|
+
children: ReactNode | ((item: SelectItemType) => ReactNode);
|
|
12
|
+
}
|
|
13
|
+
declare const Select: ({ placeholder, icon, size, children, items, label, hint, tooltip, hideRequiredIndicator, className, ...rest }: SelectProps) => import("react").JSX.Element;
|
|
14
|
+
declare const _Select: typeof Select & {
|
|
15
|
+
ComboBox: typeof ComboBox;
|
|
16
|
+
Item: typeof SelectItem;
|
|
17
|
+
};
|
|
18
|
+
export { _Select as Select };
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/Select/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAO,aAAa,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,KAAK,WAAW,EAAiB,KAAK,cAAc,EAAS,MAAM,4BAA4B,CAAC;AAEzG,OAAO,EAAE,KAAK,WAAW,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAEzG,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,EAAE,WAAW;IAC1I,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,EAAE,GAAG,SAAS,CAAC;IACtB,QAAQ,EAAE,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,cAAc,KAAK,SAAS,CAAC,CAAC;CAC7D;AAwED,QAAA,MAAM,MAAM,GAAI,+GAYb,WAAW,gCA8Bb,CAAC;AAEF,QAAA,MAAM,OAAO,EAAa,OAAO,MAAM,GAAG;IACxC,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,IAAI,EAAE,OAAO,UAAU,CAAC;CACzB,CAAC;AAIF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface PageHeaderSimpleProps {
|
|
3
|
+
/** Page title (rendered as the `h1`). */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** Supporting text shown beneath the title. */
|
|
6
|
+
description?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Breadcrumb trail shown on desktop — pass a complete `<Breadcrumbs>` element so the
|
|
9
|
+
* caller owns the items, divider and `type`. Hidden below the `lg` breakpoint.
|
|
10
|
+
*/
|
|
11
|
+
breadcrumbs?: ReactNode;
|
|
12
|
+
/** Mobile "back" link label. When set, a back link replaces the breadcrumbs below `lg`. */
|
|
13
|
+
backLabel?: string;
|
|
14
|
+
backHref?: string;
|
|
15
|
+
/** Action buttons rendered to the right of the title on desktop. */
|
|
16
|
+
actions?: ReactNode;
|
|
17
|
+
/** Render the search inputs (mobile + desktop). */
|
|
18
|
+
showSearch?: boolean;
|
|
19
|
+
/** Render the divider beneath the title row. */
|
|
20
|
+
withDivider?: boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const PageHeaderSimple: ({ title, description, breadcrumbs, backLabel, backHref, actions, showSearch, withDivider, className, }: PageHeaderSimpleProps) => import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=page-header-simple.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header-simple.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/PageHeader/components/page-header-simple.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,qBAAqB;IACpC,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,2FAA2F;IAC3F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,mDAAmD;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gDAAgD;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,GAAI,wGAU9B,qBAAqB,gCAiCvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/PageHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the NotFoundPage component.
|
|
4
|
+
* @param title - The title of the page. Defaults to "404".
|
|
5
|
+
* @param description - The description of the page. Defaults to "The page you were looking for could not be found."
|
|
6
|
+
*/
|
|
7
|
+
export interface NotFoundPageProps {
|
|
8
|
+
/** Heading shown above the description. Defaults to "404". */
|
|
9
|
+
readonly title?: string;
|
|
10
|
+
/** Body copy explaining the error. Defaults to "The page you were looking for could not be found." */
|
|
11
|
+
readonly description?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Generic 404 page template used by consuming apps as the fallback route.
|
|
15
|
+
*
|
|
16
|
+
* Lives under `components/templates/` per the atomic-design folder structure: it composes plain HTML
|
|
17
|
+
* elements + Tailwind utilities into a complete page-shaped layout. Consumers (e.g. `App.routes.tsx`)
|
|
18
|
+
* wrap this in a `<Route path="*">` and provide localised copy via props.
|
|
19
|
+
*
|
|
20
|
+
* Doubles as the Tailwind v4 + Option A CSS-isolation smoke test for the property-service MFE —
|
|
21
|
+
* if these utility classes render correctly inside `#flipdish-micro-frontend` without polluting
|
|
22
|
+
* Portal chrome, the scoping pipeline works end-to-end.
|
|
23
|
+
*/
|
|
24
|
+
export declare const NotFoundPage: ({ title, description, }: NotFoundPageProps) => ReactElement;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/NotFoundPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,sGAAsG;IACtG,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,GAAI,yBAG1B,iBAAiB,KAAG,YAKtB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ErrorInfo, ReactNode } from 'react';
|
|
2
|
+
export interface PageLayoutProps {
|
|
3
|
+
/**
|
|
4
|
+
* Stable, human-readable name of the page (e.g. "CollectionSettings"). Tags the
|
|
5
|
+
* page-level error boundary so a thrown error can be attributed to a specific page
|
|
6
|
+
* in logs/RUM, and is forwarded to `renderError` and `onError`.
|
|
7
|
+
*/
|
|
8
|
+
pageName: string;
|
|
9
|
+
/**
|
|
10
|
+
* Header region. Compose `<PageHeader.Simple>` (or a feature wrapper around it)
|
|
11
|
+
* here. Rendered OUTSIDE the error boundary so page chrome (breadcrumbs, back link)
|
|
12
|
+
* stays usable when the content below throws.
|
|
13
|
+
*/
|
|
14
|
+
header?: ReactNode;
|
|
15
|
+
/** Page content, rendered INSIDE the error boundary. */
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Replaces the default fallback shown when a child throws. Receives the thrown
|
|
19
|
+
* error and `pageName` so consumers can render localised copy.
|
|
20
|
+
*/
|
|
21
|
+
renderError?: (props: {
|
|
22
|
+
error: Error;
|
|
23
|
+
pageName: string;
|
|
24
|
+
}) => ReactNode;
|
|
25
|
+
/** Called when a child throws — wire app-level reporting (e.g. Datadog RUM) here. */
|
|
26
|
+
onError?: (error: Error, info: ErrorInfo) => void;
|
|
27
|
+
/** Extra classes merged onto the root `<main>`. */
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Page-shaped template that standardises the MFE's page chrome: the centered `<main>`
|
|
32
|
+
* scroll container, an optional header region, and a page-scoped error boundary keyed
|
|
33
|
+
* by `pageName`. Consumers drop their page content in as children.
|
|
34
|
+
*
|
|
35
|
+
* The boundary wraps `children` only, not the header: content (data-fetching, forms,
|
|
36
|
+
* dynamic logic) is where throws realistically happen, and keeping the header outside
|
|
37
|
+
* means breadcrumbs/back link stay usable so the user can navigate away when content
|
|
38
|
+
* fails — strictly better than blanking the whole page. A header throw (rare, since
|
|
39
|
+
* it's static chrome) isn't caught here, but the app-level ErrorBoundary higher up the
|
|
40
|
+
* tree still catches it; nothing goes unhandled.
|
|
41
|
+
*/
|
|
42
|
+
export declare const PageLayout: ({ pageName, header, children, renderError, onError, className }: PageLayoutProps) => ReactNode;
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/PageLayout/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,wDAAwD;IACxD,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;IACvE,qFAAqF;IACrF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAClD,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAcD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,GAAI,iEAAiE,eAAe,KAAG,SAU7G,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The options for the useResizeObserver hook.
|
|
4
|
+
*/
|
|
5
|
+
type useResizeObserverOptionsType<T> = {
|
|
6
|
+
/**
|
|
7
|
+
* The ref to the element to observe.
|
|
8
|
+
*/
|
|
9
|
+
ref: RefObject<T | undefined | null> | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The box to observe.
|
|
12
|
+
*/
|
|
13
|
+
box?: ResizeObserverBoxOptions;
|
|
14
|
+
/**
|
|
15
|
+
* The callback function to call when the size changes.
|
|
16
|
+
*/
|
|
17
|
+
onResize: () => void;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A hook that observes the size of an element and calls a callback function when the size changes.
|
|
21
|
+
* @param options - The options for the hook.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useResizeObserver<T extends Element>(options: useResizeObserverOptionsType<T>): void;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useResizeObserver/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAUlD;;GAEG;AACH,KAAK,4BAA4B,CAAC,CAAC,IAAI;IACrC;;OAEG;IACH,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,GAAG,CAAC,EAAE,wBAAwB,CAAC;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,OAAO,EAAE,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,QAiC5F"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ErrorInfo, ReactNode } from 'react';
|
|
2
|
+
export interface ErrorBoundaryProps {
|
|
3
|
+
/** Identifies this boundary in error logs/RUM (e.g. a page or feature name). */
|
|
4
|
+
identifier: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Static fallback node. Takes precedence over `somethingWentWrongText`. */
|
|
7
|
+
fallback?: ReactNode;
|
|
8
|
+
/** Error-aware fallback. Takes precedence over `fallback` and `somethingWentWrongText`. */
|
|
9
|
+
renderFallback?: (error: Error) => ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Text for the default centered fallback.
|
|
12
|
+
* TODO(i18n): source from ui-library's own translation layer once it exists; until
|
|
13
|
+
* then the consumer passes localised copy (defaults to English).
|
|
14
|
+
*/
|
|
15
|
+
somethingWentWrongText?: string;
|
|
16
|
+
/** Forwarded after the built-in log — wire app reporting (fdlogger/Datadog) here. */
|
|
17
|
+
onError?: (error: Error, info: ErrorInfo) => void;
|
|
18
|
+
/** Classes merged onto the default fallback container. */
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Thin wrapper around `react-error-boundary` so consuming apps depend on a single
|
|
23
|
+
* ui-library seam instead of importing `react-error-boundary` directly. Inspired by
|
|
24
|
+
* FlipdishUI's `FDErrorBoundary`, minus the MUI styling and the hardcoded web logger
|
|
25
|
+
* (reporting is injected via `onError` to keep the library cross-platform).
|
|
26
|
+
*
|
|
27
|
+
* Lives under `providers/` (not the visual atomic ladder) because it's a cross-cutting
|
|
28
|
+
* behavioural wrapper, not a UI primitive. The boundary logic is RN-safe; the default
|
|
29
|
+
* fallback renders a `<div>`, so an `index.native.tsx` sibling is needed before RN use.
|
|
30
|
+
*/
|
|
31
|
+
export declare const ErrorBoundary: ({ identifier, children, fallback, renderFallback, somethingWentWrongText, onError, className, }: ErrorBoundaryProps) => ReactNode;
|
|
32
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/ErrorBoundary/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlD,MAAM,WAAW,kBAAkB;IACjC,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,2FAA2F;IAC3F,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC;IAC7C;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,qFAAqF;IACrF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAClD,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,iGAQ3B,kBAAkB,KAAG,SAoBvB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merge Tailwind class strings, resolving conflicts (last value wins). Accepts the
|
|
3
|
+
* same inputs as tailwind-merge — strings, arrays, and falsy values for
|
|
4
|
+
* conditionals — so it composes cleanly:
|
|
5
|
+
*
|
|
6
|
+
* cx('px-2', isActive && 'bg-primary', ['text-sm', null]);
|
|
7
|
+
*
|
|
8
|
+
* Pure JS with no DOM dependency, so the same helper works on web (PostCSS) and
|
|
9
|
+
* React Native (NativeWind). Imported by components as
|
|
10
|
+
* `@flipdish/ui-library/utilities/cx`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const cx: (...classLists: import("tailwind-merge").ClassNameValue[]) => string;
|
|
13
|
+
type ClassValue = string | number;
|
|
14
|
+
type ClassDefinition = Record<string, ClassValue | Record<string, ClassValue | Record<string, ClassValue>>>;
|
|
15
|
+
/**
|
|
16
|
+
* Identity helper that exists only so Tailwind IntelliSense recognises and sorts
|
|
17
|
+
* the class strings held inside style-config objects (e.g. `tailwind-variants`
|
|
18
|
+
* slot maps). Returns its argument unchanged.
|
|
19
|
+
*/
|
|
20
|
+
export declare const sortCx: <T extends ClassDefinition>(classes: T) => T;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/cx/index.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,EAAE,sEAAU,CAAC;AAE1B,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAClC,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;AAE5G;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,eAAe,EAAE,SAAS,CAAC,KAAG,CAAY,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type ReactComponent = React.FC<any> | React.ComponentClass<any, any>;
|
|
3
|
+
/**
|
|
4
|
+
* Backs Untitled UI's `@/utils/is-react-component` import.
|
|
5
|
+
*
|
|
6
|
+
* Distinguishes a component passed as a prop (an icon `FC`, class component, or
|
|
7
|
+
* `forwardRef` object you instantiate) from an already-rendered element
|
|
8
|
+
* (handled via React's `isValidElement`). Untitled UI icon props accept either
|
|
9
|
+
* form; these guards select the "render it yourself" branch.
|
|
10
|
+
*
|
|
11
|
+
* Pure JS with no DOM dependency — works on web (PostCSS) and React Native
|
|
12
|
+
* (NativeWind). Imported by components as
|
|
13
|
+
* `@flipdish/ui-library/utilities/isReactComponent`.
|
|
14
|
+
*/
|
|
15
|
+
/** Checks if a given value is a function component. */
|
|
16
|
+
export declare const isFunctionComponent: (component: any) => component is React.FC<any>;
|
|
17
|
+
/** Checks if a given value is a class component. */
|
|
18
|
+
export declare const isClassComponent: (component: any) => component is React.ComponentClass<any, any>;
|
|
19
|
+
/** Checks if a given value is a forward ref component. */
|
|
20
|
+
export declare const isForwardRefComponent: (component: any) => component is React.ForwardRefExoticComponent<any>;
|
|
21
|
+
/** Checks if a given value is a valid React component (FC, class, or forwardRef). */
|
|
22
|
+
export declare const isReactComponent: (component: any) => component is ReactComponent;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/isReactComponent/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,cAAc,GAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAErE;;;;;;;;;;;GAWG;AAEH,uDAAuD;AAEvD,eAAO,MAAM,mBAAmB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,EAAE,CAAC,GAAG,CAE7E,CAAC;AAEF,oDAAoD;AAEpD,eAAO,MAAM,gBAAgB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAE3F,CAAC;AAEF,0DAA0D;AAE1D,eAAO,MAAM,qBAAqB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,yBAAyB,CAAC,GAAG,CAEtG,CAAC;AAEF,qFAAqF;AAErF,eAAO,MAAM,gBAAgB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,cAE9D,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves an environment variable.
|
|
3
|
+
*
|
|
4
|
+
* @param key The key of the environment variable to retrieve.
|
|
5
|
+
* @returns The value of the environment variable.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getEnvironmentVariable: (key: string) => string;
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves a micro-frontend attribute.
|
|
10
|
+
*
|
|
11
|
+
* @param key The key of the attribute to retrieve.
|
|
12
|
+
* @returns The value of the attribute.
|
|
13
|
+
*/
|
|
14
|
+
export declare const getMicroFrontendAttribute: (key: string) => string;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves the AppId.
|
|
17
|
+
*
|
|
18
|
+
* Attempts to get the value from the environment variable `VITE_APPID_OVERRIDE`.
|
|
19
|
+
* If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-app-id`.
|
|
20
|
+
* Fallbacks to `data-appid` for backwards compatibility @flipdish/portal-library@5.1.0 and below
|
|
21
|
+
*
|
|
22
|
+
* @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.
|
|
23
|
+
*/
|
|
24
|
+
export declare const getAppId: () => string;
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves the OrgId.
|
|
27
|
+
*
|
|
28
|
+
* Attempts to get the value from the environment variable `VITE_ORGID_OVERRIDE`.
|
|
29
|
+
* If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-org-id`.
|
|
30
|
+
* Fallbacks to `data-orgid` for backwards compatibility @flipdish/portal-library@5.1.0 and below
|
|
31
|
+
*
|
|
32
|
+
* @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.
|
|
33
|
+
*/
|
|
34
|
+
export declare const getOrgId: () => string;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves the BrandId.
|
|
37
|
+
*
|
|
38
|
+
* Attempts to get the value from the environment variable `VITE_BRANDID_OVERRIDE`.
|
|
39
|
+
* If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-brand-id`.
|
|
40
|
+
* Fallbacks to `data-brandid` for backwards compatibility @flipdish/portal-library@5.1.0 and below
|
|
41
|
+
*
|
|
42
|
+
* @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.
|
|
43
|
+
*/
|
|
44
|
+
export declare const getBrandId: () => string;
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves the isFlipdishStaff attribute.
|
|
47
|
+
*
|
|
48
|
+
* Attempts to get the value from the environment variable `VITE_ISFLIPDISHSTAFFOVERRIDE`.
|
|
49
|
+
* If the environment variable is not set, it falls back to retrieving from a micro frontend attribute `data-is-flipdish-staff`.
|
|
50
|
+
* Fallbacks to `data-isflipdishstaff` for backwards compatibility @flipdish/portal-library@5.1.0 and below
|
|
51
|
+
*
|
|
52
|
+
* @warning Your component will not re-render if the value changes. Use 'useMicroFrontendAttributes' custom hook instead if you care about reactivity.
|
|
53
|
+
*/
|
|
54
|
+
export declare const getIsFlipdishStaff: () => boolean;
|
|
55
|
+
export declare const lazyWithRetry: (componentImport: () => any) => import("react").LazyExoticComponent<import("react").ComponentType<any>>;
|
|
56
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/renderUtils/index.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,KAAK,MAAM,KAAG,MAgBpD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GAAI,KAAK,MAAM,KAAG,MAMvD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,QAAO,MAE3B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ,QAAO,MAE3B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,QAAO,MAE7B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,QAAO,OAMrC,CAAC;AAGF,eAAO,MAAM,aAAa,GAAI,iBAAiB,MAAM,GAAG,4EAsBpD,CAAC"}
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Shared Tailwind v4 runtime for `@flipdish/ui-library`.
|
|
3
|
+
*
|
|
4
|
+
* Consumed by an app's Tailwind entry CSS via:
|
|
5
|
+
*
|
|
6
|
+
* @import "@flipdish/ui-library/styles";
|
|
7
|
+
*
|
|
8
|
+
* Centralises everything pasted Untitled UI components depend on — the Tailwind
|
|
9
|
+
* plugins, custom variants, `@utility` definitions, and base resets — so each MFE
|
|
10
|
+
* / consumer doesn't re-declare them. Tokens live separately in
|
|
11
|
+
* `@flipdish/ui-tokens` (`@import "@flipdish/ui-tokens/css"`).
|
|
12
|
+
*
|
|
13
|
+
* NOTE: this file declares `@plugin`s, so the plugin packages must be resolvable
|
|
14
|
+
* from THIS package (they are declared in ui-library's dependencies). Paths in
|
|
15
|
+
* `@source`/`@plugin` resolve relative to this file's real location.
|
|
16
|
+
*
|
|
17
|
+
* App-level concerns stay in the consumer's entry CSS: the `@layer` order,
|
|
18
|
+
* `tailwindcss` theme/preflight/utilities imports, and any PostCSS scoping
|
|
19
|
+
* (e.g. the `#flipdish-micro-frontend` prefix pipeline) — those are bundler /
|
|
20
|
+
* MFE concerns, not library concerns.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
* Self-register class scanning for this library's own sources. Tailwind ignores
|
|
25
|
+
* node_modules by default, so without this an app wouldn't generate classes used
|
|
26
|
+
* only inside ui-library. Resolves relative to this file's directory — `src` during
|
|
27
|
+
* dev/Storybook (scans .ts/.tsx), `dist` when shipped (scans the built .js). A bare
|
|
28
|
+
* directory source avoids brace globs, which Tailwind's CSS parser rejects — even in a
|
|
29
|
+
* comment, so don't reintroduce one here.
|
|
30
|
+
*/
|
|
31
|
+
@source ".";
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
* Untitled UI runtime plugins (per https://www.untitledui.com/react/integrations/vite).
|
|
35
|
+
*/
|
|
36
|
+
@plugin "tailwindcss-animate";
|
|
37
|
+
@plugin "tailwindcss-react-aria-components";
|
|
38
|
+
|
|
39
|
+
/*
|
|
40
|
+
* `dark` is mapped to OUR `[data-theme="dark"]` attribute (NOT Untitled UI's default
|
|
41
|
+
* `.dark-mode` class), matching the dark block in `@flipdish/ui-tokens`. Any
|
|
42
|
+
* `dark:` utility therefore resolves via the same attribute the token layer cascades on.
|
|
43
|
+
*/
|
|
44
|
+
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
|
|
45
|
+
@custom-variant label (& [data-label]);
|
|
46
|
+
@custom-variant focus-input-within (&:has(input:focus));
|
|
47
|
+
|
|
48
|
+
@utility scrollbar-hide {
|
|
49
|
+
/* Webkit (Chrome, Safari, Opera) */
|
|
50
|
+
&::-webkit-scrollbar {
|
|
51
|
+
display: none;
|
|
52
|
+
-webkit-appearance: none;
|
|
53
|
+
}
|
|
54
|
+
/* IE, Edge, Firefox */
|
|
55
|
+
-ms-overflow-style: none;
|
|
56
|
+
scrollbar-width: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@utility transition-inherit-all {
|
|
60
|
+
transition-property: inherit;
|
|
61
|
+
transition-duration: inherit;
|
|
62
|
+
transition-timing-function: inherit;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/*
|
|
66
|
+
* Untitled UI base resets. When a consumer scopes its CSS (e.g. the property-service MFE
|
|
67
|
+
* rewrites `html` to `#flipdish-micro-frontend` via PostCSS), these are scoped with it.
|
|
68
|
+
* `var(--font-body)` is provided by `@flipdish/ui-tokens`.
|
|
69
|
+
*/
|
|
70
|
+
@layer base {
|
|
71
|
+
html {
|
|
72
|
+
font-family: var(--font-body);
|
|
73
|
+
-webkit-font-smoothing: antialiased;
|
|
74
|
+
-moz-osx-font-smoothing: grayscale;
|
|
75
|
+
-webkit-font-variant-ligatures: contextual;
|
|
76
|
+
font-variant-ligatures: contextual;
|
|
77
|
+
-webkit-font-kerning: normal;
|
|
78
|
+
font-kerning: normal;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Hide Safari's default <details> expand arrow. */
|
|
82
|
+
details summary::-webkit-details-marker {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Hide number-input spinners (Chrome, Safari, Edge, Opera). */
|
|
87
|
+
input::-webkit-outer-spin-button,
|
|
88
|
+
input::-webkit-inner-spin-button {
|
|
89
|
+
-webkit-appearance: none;
|
|
90
|
+
margin: 0;
|
|
91
|
+
}
|
|
92
|
+
/* Firefox */
|
|
93
|
+
input[type="number"] {
|
|
94
|
+
-moz-appearance: textfield;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Hide the default clear (X) button from search inputs. */
|
|
98
|
+
input[type="search"]::-webkit-search-cancel-button {
|
|
99
|
+
-webkit-appearance: none;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tailwindMerge = require('tailwind-merge');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* tailwind-merge configured for Untitled UI's custom font-size scale, so the
|
|
7
|
+
* `text-display-*` utilities are treated as part of the `font-size` conflict
|
|
8
|
+
* group. Without this, tailwind-merge wouldn't de-dupe e.g.
|
|
9
|
+
* `text-display-sm text-display-lg` down to the last one.
|
|
10
|
+
*
|
|
11
|
+
* Mirrors the `cx` helper from Untitled UI's Vite integration guide.
|
|
12
|
+
*/
|
|
13
|
+
const twMerge = tailwindMerge.extendTailwindMerge({
|
|
14
|
+
extend: {
|
|
15
|
+
theme: {
|
|
16
|
+
text: ['display-xs', 'display-sm', 'display-md', 'display-lg', 'display-xl', 'display-2xl'],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Merge Tailwind class strings, resolving conflicts (last value wins). Accepts the
|
|
22
|
+
* same inputs as tailwind-merge — strings, arrays, and falsy values for
|
|
23
|
+
* conditionals — so it composes cleanly:
|
|
24
|
+
*
|
|
25
|
+
* cx('px-2', isActive && 'bg-primary', ['text-sm', null]);
|
|
26
|
+
*
|
|
27
|
+
* Pure JS with no DOM dependency, so the same helper works on web (PostCSS) and
|
|
28
|
+
* React Native (NativeWind). Imported by components as
|
|
29
|
+
* `@flipdish/ui-library/utilities/cx`.
|
|
30
|
+
*/
|
|
31
|
+
const cx = twMerge;
|
|
32
|
+
/**
|
|
33
|
+
* Identity helper that exists only so Tailwind IntelliSense recognises and sorts
|
|
34
|
+
* the class strings held inside style-config objects (e.g. `tailwind-variants`
|
|
35
|
+
* slot maps). Returns its argument unchanged.
|
|
36
|
+
*/
|
|
37
|
+
const sortCx = (classes) => classes;
|
|
38
|
+
|
|
39
|
+
exports.cx = cx;
|
|
40
|
+
exports.sortCx = sortCx;
|
|
41
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../src/utilities/cx/index.ts"],"sourcesContent":[null],"names":["extendTailwindMerge"],"mappings":";;;;AAEA;;;;;;;AAOG;AACH,MAAM,OAAO,GAAGA,iCAAmB,CAAC;AAClC,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,CAAC;AAC5F,SAAA;AACF,KAAA;AACF,CAAA,CAAC;AAEF;;;;;;;;;;AAUG;AACI,MAAM,EAAE,GAAG;AAKlB;;;;AAIG;AACI,MAAM,MAAM,GAAG,CAA4B,OAAU,KAAQ;;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merge Tailwind class strings, resolving conflicts (last value wins). Accepts the
|
|
3
|
+
* same inputs as tailwind-merge — strings, arrays, and falsy values for
|
|
4
|
+
* conditionals — so it composes cleanly:
|
|
5
|
+
*
|
|
6
|
+
* cx('px-2', isActive && 'bg-primary', ['text-sm', null]);
|
|
7
|
+
*
|
|
8
|
+
* Pure JS with no DOM dependency, so the same helper works on web (PostCSS) and
|
|
9
|
+
* React Native (NativeWind). Imported by components as
|
|
10
|
+
* `@flipdish/ui-library/utilities/cx`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const cx: (...classLists: import("tailwind-merge").ClassNameValue[]) => string;
|
|
13
|
+
type ClassValue = string | number;
|
|
14
|
+
type ClassDefinition = Record<string, ClassValue | Record<string, ClassValue | Record<string, ClassValue>>>;
|
|
15
|
+
/**
|
|
16
|
+
* Identity helper that exists only so Tailwind IntelliSense recognises and sorts
|
|
17
|
+
* the class strings held inside style-config objects (e.g. `tailwind-variants`
|
|
18
|
+
* slot maps). Returns its argument unchanged.
|
|
19
|
+
*/
|
|
20
|
+
export declare const sortCx: <T extends ClassDefinition>(classes: T) => T;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utilities/cx/index.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,EAAE,sEAAU,CAAC;AAE1B,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAClC,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;AAE5G;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,eAAe,EAAE,SAAS,CAAC,KAAG,CAAY,CAAC"}
|