@adam-milo/ui 1.0.35 → 1.0.41
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 +217 -337
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -108
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +4 -103
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +4 -230
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +9 -325
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +11 -279
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +2 -150
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +5 -65
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +4 -71
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +4 -125
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +8 -93
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +4 -42
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -482
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +5 -169
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +11 -44
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +2 -38
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -46
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -118
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +7 -55
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +2 -45
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +2 -53
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +2 -55
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +2 -45
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -72
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +10 -14
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +11 -332
- package/dist/index33.cjs +1 -0
- package/dist/index33.js +1 -0
- package/dist/index34.cjs +1 -0
- package/dist/index34.js +1 -0
- package/dist/index35.cjs +1 -0
- package/dist/index35.js +1 -0
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +1 -386
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +1 -16
- package/dist/index38.cjs +1 -0
- package/dist/index38.js +15 -0
- package/dist/index39.cjs +1 -0
- package/dist/index39.js +1 -0
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +3 -70
- package/dist/index40.cjs +1 -0
- package/dist/index40.js +1 -0
- package/dist/index41.cjs +1 -0
- package/dist/index41.js +1 -0
- package/dist/index42.cjs +1 -0
- package/dist/index42.js +1 -0
- package/dist/index43.cjs +1 -0
- package/dist/index43.js +1 -0
- package/dist/index44.cjs +1 -0
- package/dist/index44.js +1 -0
- package/dist/index45.cjs +1 -0
- package/dist/index45.js +1 -0
- package/dist/index46.cjs +1 -0
- package/dist/index46.js +1 -0
- package/dist/index47.cjs +1 -0
- package/dist/index47.js +1 -0
- package/dist/index48.cjs +1 -0
- package/dist/index48.js +1 -0
- package/dist/index49.cjs +1 -0
- package/dist/index49.js +1 -0
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +2 -45
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +1 -9
- package/dist/index51.cjs +1 -0
- package/dist/index51.js +1 -0
- package/dist/index52.cjs +1 -0
- package/dist/index52.js +1 -0
- package/dist/index53.cjs +1 -0
- package/dist/index53.js +1 -0
- package/dist/index54.cjs +1 -0
- package/dist/index54.js +1 -0
- package/dist/index55.cjs +1 -0
- package/dist/index55.js +1 -0
- package/dist/index56.cjs +1 -0
- package/dist/index56.js +1 -0
- package/dist/index57.cjs +1 -0
- package/dist/index57.js +1 -0
- package/dist/index58.cjs +1 -0
- package/dist/index58.js +1 -0
- package/dist/index59.cjs +1 -0
- package/dist/index59.js +1 -0
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +2 -22
- package/dist/index60.cjs +1 -0
- package/dist/index60.js +1 -0
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +1 -21
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +1 -502
- package/dist/index63.cjs +1 -0
- package/dist/index63.js +1 -0
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +1 -11
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +5 -39
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +1 -64
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +1 -212
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +1 -14
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +2 -293
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +1 -61
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +1 -18
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +1 -129
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +4 -43
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +1 -99
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +1 -71
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +1 -36
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +3 -14
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +1 -17
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +1 -6
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +1 -297
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +2 -112
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +1 -25
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +1 -39
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +1 -625
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +2 -721
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +1 -154
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +1 -173
- package/dist/index86.cjs +1 -0
- package/dist/index86.js +1 -0
- package/dist/index87.cjs +1 -0
- package/dist/index87.js +1 -0
- package/dist/index88.cjs +1 -0
- package/dist/index88.js +1 -0
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -112
- package/dist/src/components/core/button/Button.component.d.ts +2 -35
- package/dist/src/components/core/button/Button.component.d.ts.map +1 -1
- package/dist/src/components/core/button/Button.styles.d.ts +5 -0
- package/dist/src/components/core/button/Button.styles.d.ts.map +1 -0
- package/dist/src/components/core/button/Button.types.d.ts +11 -0
- package/dist/src/components/core/button/Button.types.d.ts.map +1 -0
- package/dist/src/components/core/icon-button/IconButton.component.d.ts +2 -33
- package/dist/src/components/core/icon-button/IconButton.component.d.ts.map +1 -1
- package/dist/src/components/core/icon-button/IconButton.styles.d.ts +3 -0
- package/dist/src/components/core/icon-button/IconButton.styles.d.ts.map +1 -0
- package/dist/src/components/core/icon-button/IconButton.types.d.ts +12 -0
- package/dist/src/components/core/icon-button/IconButton.types.d.ts.map +1 -0
- package/dist/src/components/core/menu-icon-button/MenuIconButton.component.d.ts +2 -76
- package/dist/src/components/core/menu-icon-button/MenuIconButton.component.d.ts.map +1 -1
- package/dist/src/components/core/menu-icon-button/MenuIconButton.styles.d.ts +9 -0
- package/dist/src/components/core/menu-icon-button/MenuIconButton.styles.d.ts.map +1 -0
- package/dist/src/components/core/menu-icon-button/MenuIconButton.types.d.ts +11 -0
- package/dist/src/components/core/menu-icon-button/MenuIconButton.types.d.ts.map +1 -0
- package/dist/src/components/data-display/card/Card.component.d.ts +2 -34
- package/dist/src/components/data-display/card/Card.component.d.ts.map +1 -1
- package/dist/src/components/data-display/card/Card.styles.d.ts +12 -0
- package/dist/src/components/data-display/card/Card.styles.d.ts.map +1 -0
- package/dist/src/components/data-display/card/Card.types.d.ts +28 -0
- package/dist/src/components/data-display/card/Card.types.d.ts.map +1 -0
- package/dist/src/components/data-display/chip/Chip.component.d.ts +2 -33
- package/dist/src/components/data-display/chip/Chip.component.d.ts.map +1 -1
- package/dist/src/components/data-display/chip/Chip.styles.d.ts +24 -0
- package/dist/src/components/data-display/chip/Chip.styles.d.ts.map +1 -0
- package/dist/src/components/data-display/chip/Chip.types.d.ts +11 -0
- package/dist/src/components/data-display/chip/Chip.types.d.ts.map +1 -0
- package/dist/src/components/data-display/chip-group/ChipGroup.component.d.ts +2 -69
- package/dist/src/components/data-display/chip-group/ChipGroup.component.d.ts.map +1 -1
- package/dist/src/components/data-display/chip-group/ChipGroup.styles.d.ts +14 -0
- package/dist/src/components/data-display/chip-group/ChipGroup.styles.d.ts.map +1 -0
- package/dist/src/components/data-display/chip-group/ChipGroup.types.d.ts +21 -0
- package/dist/src/components/data-display/chip-group/ChipGroup.types.d.ts.map +1 -0
- package/dist/src/components/data-display/datatable/DataTable.component.d.ts +2 -22
- package/dist/src/components/data-display/datatable/DataTable.component.d.ts.map +1 -1
- package/dist/src/components/data-display/datatable/DataTable.styles.d.ts +10 -0
- package/dist/src/components/data-display/datatable/DataTable.styles.d.ts.map +1 -0
- package/dist/src/components/data-display/datatable/DataTable.types.d.ts +16 -0
- package/dist/src/components/data-display/datatable/DataTable.types.d.ts.map +1 -0
- package/dist/src/components/feedback/ai-loader/AiLoader.component.d.ts +5 -0
- package/dist/src/components/feedback/ai-loader/AiLoader.component.d.ts.map +1 -0
- package/dist/src/components/feedback/ai-loader/AiLoader.styles.d.ts +5 -0
- package/dist/src/components/feedback/ai-loader/AiLoader.styles.d.ts.map +1 -0
- package/dist/src/components/feedback/ai-loader/AiLoader.types.d.ts +10 -0
- package/dist/src/components/feedback/ai-loader/AiLoader.types.d.ts.map +1 -0
- package/dist/src/components/feedback/alert/Alert.component.d.ts +2 -16
- package/dist/src/components/feedback/alert/Alert.component.d.ts.map +1 -1
- package/dist/src/components/feedback/alert/Alert.styles.d.ts +10 -0
- package/dist/src/components/feedback/alert/Alert.styles.d.ts.map +1 -0
- package/dist/src/components/feedback/alert/Alert.types.d.ts +10 -0
- package/dist/src/components/feedback/alert/Alert.types.d.ts.map +1 -0
- package/dist/src/components/feedback/spinner/Spinner.component.d.ts +2 -59
- package/dist/src/components/feedback/spinner/Spinner.component.d.ts.map +1 -1
- package/dist/src/components/feedback/spinner/Spinner.styles.d.ts +7 -0
- package/dist/src/components/feedback/spinner/Spinner.styles.d.ts.map +1 -0
- package/dist/src/components/feedback/spinner/Spinner.types.d.ts +14 -0
- package/dist/src/components/feedback/spinner/Spinner.types.d.ts.map +1 -0
- package/dist/src/components/forms/alphanumeric-input/AlphanumericInput.component.d.ts +2 -44
- package/dist/src/components/forms/alphanumeric-input/AlphanumericInput.component.d.ts.map +1 -1
- package/dist/src/components/forms/alphanumeric-input/AlphanumericInput.types.d.ts +10 -0
- package/dist/src/components/forms/alphanumeric-input/AlphanumericInput.types.d.ts.map +1 -0
- package/dist/src/components/forms/checkbox/Checkbox.component.d.ts +2 -99
- package/dist/src/components/forms/checkbox/Checkbox.component.d.ts.map +1 -1
- package/dist/src/components/forms/checkbox/Checkbox.styles.d.ts +10 -0
- package/dist/src/components/forms/checkbox/Checkbox.styles.d.ts.map +1 -0
- package/dist/src/components/forms/checkbox/Checkbox.types.d.ts +17 -0
- package/dist/src/components/forms/checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/src/components/forms/email-input/EmailInput.component.d.ts +2 -28
- package/dist/src/components/forms/email-input/EmailInput.component.d.ts.map +1 -1
- package/dist/src/components/forms/email-input/EmailInput.types.d.ts +7 -0
- package/dist/src/components/forms/email-input/EmailInput.types.d.ts.map +1 -0
- package/dist/src/components/forms/input/Input.component.d.ts +2 -107
- package/dist/src/components/forms/input/Input.component.d.ts.map +1 -1
- package/dist/src/components/forms/input/Input.styles.d.ts +13 -0
- package/dist/src/components/forms/input/Input.styles.d.ts.map +1 -0
- package/dist/src/components/forms/input/Input.types.d.ts +17 -0
- package/dist/src/components/forms/input/Input.types.d.ts.map +1 -0
- package/dist/src/components/forms/numeric-input/NumericInput.component.d.ts +2 -41
- package/dist/src/components/forms/numeric-input/NumericInput.component.d.ts.map +1 -1
- package/dist/src/components/forms/numeric-input/NumericInput.types.d.ts +9 -0
- package/dist/src/components/forms/numeric-input/NumericInput.types.d.ts.map +1 -0
- package/dist/src/components/forms/otp-input/OTPInput.component.d.ts +2 -79
- package/dist/src/components/forms/otp-input/OTPInput.component.d.ts.map +1 -1
- package/dist/src/components/forms/otp-input/OTPInput.styles.d.ts +12 -0
- package/dist/src/components/forms/otp-input/OTPInput.styles.d.ts.map +1 -0
- package/dist/src/components/forms/otp-input/OTPInput.types.d.ts +23 -0
- package/dist/src/components/forms/otp-input/OTPInput.types.d.ts.map +1 -0
- package/dist/src/components/forms/password-input/PasswordInput.component.d.ts +2 -25
- package/dist/src/components/forms/password-input/PasswordInput.component.d.ts.map +1 -1
- package/dist/src/components/forms/password-input/PasswordInput.types.d.ts +6 -0
- package/dist/src/components/forms/password-input/PasswordInput.types.d.ts.map +1 -0
- package/dist/src/components/forms/phone-input/PhoneInput.component.d.ts +2 -91
- package/dist/src/components/forms/phone-input/PhoneInput.component.d.ts.map +1 -1
- package/dist/src/components/forms/phone-input/PhoneInput.styles.d.ts +22 -0
- package/dist/src/components/forms/phone-input/PhoneInput.styles.d.ts.map +1 -0
- package/dist/src/components/forms/phone-input/PhoneInput.types.d.ts +19 -0
- package/dist/src/components/forms/phone-input/PhoneInput.types.d.ts.map +1 -0
- package/dist/src/components/forms/phone-input/countries.d.ts +3 -79
- package/dist/src/components/forms/phone-input/countries.d.ts.map +1 -1
- package/dist/src/components/forms/phone-input/countries.types.d.ts +12 -0
- package/dist/src/components/forms/phone-input/countries.types.d.ts.map +1 -0
- package/dist/src/components/forms/radio/Radio.component.d.ts +2 -97
- package/dist/src/components/forms/radio/Radio.component.d.ts.map +1 -1
- package/dist/src/components/forms/radio/Radio.styles.d.ts +10 -0
- package/dist/src/components/forms/radio/Radio.styles.d.ts.map +1 -0
- package/dist/src/components/forms/radio/Radio.types.d.ts +16 -0
- package/dist/src/components/forms/radio/Radio.types.d.ts.map +1 -0
- package/dist/src/components/forms/select/Select.component.d.ts +2 -94
- package/dist/src/components/forms/select/Select.component.d.ts.map +1 -1
- package/dist/src/components/forms/select/Select.styles.d.ts +18 -0
- package/dist/src/components/forms/select/Select.styles.d.ts.map +1 -0
- package/dist/src/components/forms/select/Select.types.d.ts +34 -0
- package/dist/src/components/forms/select/Select.types.d.ts.map +1 -0
- package/dist/src/components/forms/toggle/Toggle.component.d.ts +2 -77
- package/dist/src/components/forms/toggle/Toggle.component.d.ts.map +1 -1
- package/dist/src/components/forms/toggle/Toggle.styles.d.ts +23 -0
- package/dist/src/components/forms/toggle/Toggle.styles.d.ts.map +1 -0
- package/dist/src/components/forms/toggle/Toggle.types.d.ts +14 -0
- package/dist/src/components/forms/toggle/Toggle.types.d.ts.map +1 -0
- package/dist/src/components/layout/auth-layout/AuthLayout.component.d.ts +2 -83
- package/dist/src/components/layout/auth-layout/AuthLayout.component.d.ts.map +1 -1
- package/dist/src/components/layout/auth-layout/AuthLayout.styles.d.ts +11 -0
- package/dist/src/components/layout/auth-layout/AuthLayout.styles.d.ts.map +1 -0
- package/dist/src/components/layout/auth-layout/AuthLayout.types.d.ts +16 -0
- package/dist/src/components/layout/auth-layout/AuthLayout.types.d.ts.map +1 -0
- package/dist/src/components/layout/container/Container.component.d.ts +2 -23
- package/dist/src/components/layout/container/Container.component.d.ts.map +1 -1
- package/dist/src/components/layout/container/Container.styles.d.ts +15 -0
- package/dist/src/components/layout/container/Container.styles.d.ts.map +1 -0
- package/dist/src/components/layout/container/Container.types.d.ts +9 -0
- package/dist/src/components/layout/container/Container.types.d.ts.map +1 -0
- package/dist/src/components/layout/divider/Divider.component.d.ts +2 -36
- package/dist/src/components/layout/divider/Divider.component.d.ts.map +1 -1
- package/dist/src/components/layout/divider/Divider.styles.d.ts +4 -0
- package/dist/src/components/layout/divider/Divider.styles.d.ts.map +1 -0
- package/dist/src/components/layout/divider/Divider.types.d.ts +11 -0
- package/dist/src/components/layout/divider/Divider.types.d.ts.map +1 -0
- package/dist/src/components/layout/grid/Grid.component.d.ts +2 -50
- package/dist/src/components/layout/grid/Grid.component.d.ts.map +1 -1
- package/dist/src/components/layout/grid/Grid.styles.d.ts +79 -0
- package/dist/src/components/layout/grid/Grid.styles.d.ts.map +1 -0
- package/dist/src/components/layout/grid/Grid.types.d.ts +15 -0
- package/dist/src/components/layout/grid/Grid.types.d.ts.map +1 -0
- package/dist/src/components/layout/stack/Stack.component.d.ts +2 -18
- package/dist/src/components/layout/stack/Stack.component.d.ts.map +1 -1
- package/dist/src/components/layout/stack/Stack.styles.d.ts +5 -0
- package/dist/src/components/layout/stack/Stack.styles.d.ts.map +1 -0
- package/dist/src/components/layout/stack/Stack.types.d.ts +12 -0
- package/dist/src/components/layout/stack/Stack.types.d.ts.map +1 -0
- package/dist/src/components/navigation/tabs/Tabs.component.d.ts +2 -38
- package/dist/src/components/navigation/tabs/Tabs.component.d.ts.map +1 -1
- package/dist/src/components/navigation/tabs/Tabs.styles.d.ts +4 -0
- package/dist/src/components/navigation/tabs/Tabs.styles.d.ts.map +1 -0
- package/dist/src/components/navigation/tabs/Tabs.types.d.ts +17 -0
- package/dist/src/components/navigation/tabs/Tabs.types.d.ts.map +1 -0
- package/dist/src/components/overlays/dialog/Dialog.component.d.ts +2 -55
- package/dist/src/components/overlays/dialog/Dialog.component.d.ts.map +1 -1
- package/dist/src/components/overlays/dialog/Dialog.styles.d.ts +20 -0
- package/dist/src/components/overlays/dialog/Dialog.styles.d.ts.map +1 -0
- package/dist/src/components/overlays/dialog/Dialog.types.d.ts +41 -0
- package/dist/src/components/overlays/dialog/Dialog.types.d.ts.map +1 -0
- package/dist/src/components/typography/heading/Heading.component.d.ts +2 -89
- package/dist/src/components/typography/heading/Heading.component.d.ts.map +1 -1
- package/dist/src/components/typography/heading/Heading.styles.d.ts +9 -0
- package/dist/src/components/typography/heading/Heading.styles.d.ts.map +1 -0
- package/dist/src/components/typography/heading/Heading.types.d.ts +19 -0
- package/dist/src/components/typography/heading/Heading.types.d.ts.map +1 -0
- package/dist/src/components/typography/link/Link.component.d.ts +2 -77
- package/dist/src/components/typography/link/Link.component.d.ts.map +1 -1
- package/dist/src/components/typography/link/Link.styles.d.ts +9 -0
- package/dist/src/components/typography/link/Link.styles.d.ts.map +1 -0
- package/dist/src/components/typography/link/Link.types.d.ts +17 -0
- package/dist/src/components/typography/link/Link.types.d.ts.map +1 -0
- package/dist/src/components/typography/text/Text.component.d.ts +4 -91
- package/dist/src/components/typography/text/Text.component.d.ts.map +1 -1
- package/dist/src/components/typography/text/Text.styles.d.ts +8 -0
- package/dist/src/components/typography/text/Text.styles.d.ts.map +1 -0
- package/dist/src/components/typography/text/Text.types.d.ts +20 -0
- package/dist/src/components/typography/text/Text.types.d.ts.map +1 -0
- package/dist/src/index.d.ts +5 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/styles.css +1 -0
- package/package.json +8 -13
- package/dist/index2.cjs +0 -1
- package/dist/index2.js +0 -40
- package/dist/style.css +0 -1
|
@@ -1,92 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HeadingProps } from './Heading.types';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Semantic heading level (1-6 for h1-h6)
|
|
5
|
-
*/
|
|
6
|
-
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
7
|
-
/**
|
|
8
|
-
* Visual size variants for headings
|
|
9
|
-
* Decoupled from semantic level to allow styling flexibility
|
|
10
|
-
*/
|
|
11
|
-
export type HeadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
12
|
-
/**
|
|
13
|
-
* Heading weight variants
|
|
14
|
-
*/
|
|
15
|
-
export type HeadingWeight = 'medium' | 'semibold' | 'bold' | 'black';
|
|
16
|
-
/**
|
|
17
|
-
* Heading alignment options
|
|
18
|
-
* - 'responsive': center on mobile, start (left) on desktop - for auth pages
|
|
19
|
-
*/
|
|
20
|
-
export type HeadingAlign = 'start' | 'center' | 'end' | 'responsive';
|
|
21
|
-
/**
|
|
22
|
-
* Heading color variants using design token colors
|
|
23
|
-
*/
|
|
24
|
-
export type HeadingColor = 'text' | 'action' | 'clickable' | 'popup' | 'error' | 'secondary' | 'system-text' | 'grey-07';
|
|
25
|
-
/**
|
|
26
|
-
* Props for the Heading component
|
|
27
|
-
*/
|
|
28
|
-
export interface HeadingProps extends Omit<ComponentPropsWithoutRef<'h1'>, 'color'> {
|
|
29
|
-
/**
|
|
30
|
-
* Semantic heading level (1-6 for h1-h6)
|
|
31
|
-
* @default 2
|
|
32
|
-
*/
|
|
33
|
-
level?: HeadingLevel;
|
|
34
|
-
/**
|
|
35
|
-
* Visual size variant (decoupled from semantic level)
|
|
36
|
-
* @default derived from level
|
|
37
|
-
*/
|
|
38
|
-
size?: HeadingSize;
|
|
39
|
-
/**
|
|
40
|
-
* Font weight
|
|
41
|
-
* @default 'bold'
|
|
42
|
-
*/
|
|
43
|
-
weight?: HeadingWeight;
|
|
44
|
-
/**
|
|
45
|
-
* Text color using design token colors
|
|
46
|
-
* @default 'text'
|
|
47
|
-
*/
|
|
48
|
-
color?: HeadingColor;
|
|
49
|
-
/**
|
|
50
|
-
* Text alignment
|
|
51
|
-
* @default 'start'
|
|
52
|
-
*/
|
|
53
|
-
align?: HeadingAlign;
|
|
54
|
-
/**
|
|
55
|
-
* Custom className for additional styling
|
|
56
|
-
*/
|
|
57
|
-
className?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Custom data-cy attribute for Cypress testing
|
|
60
|
-
*/
|
|
61
|
-
'data-cy'?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Custom data-testid attribute for unit testing
|
|
64
|
-
*/
|
|
65
|
-
'data-testid'?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Heading content
|
|
68
|
-
*/
|
|
69
|
-
children?: React.ReactNode;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Heading component for semantic heading levels (h1-h6) with consistent styling
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```tsx
|
|
76
|
-
* // Basic usage - renders as h2 with xl size
|
|
77
|
-
* <Heading>Page Title</Heading>
|
|
78
|
-
*
|
|
79
|
-
* // Specify level for semantic HTML
|
|
80
|
-
* <Heading level={1}>Main Heading</Heading>
|
|
81
|
-
*
|
|
82
|
-
* // Decouple visual size from semantic level
|
|
83
|
-
* <Heading level={3} size="xl">H3 styled as H1 size</Heading>
|
|
84
|
-
*
|
|
85
|
-
* // With weight and color
|
|
86
|
-
* <Heading level={2} weight="semibold" color="secondary">
|
|
87
|
-
* Section Title
|
|
88
|
-
* </Heading>
|
|
89
|
-
* ```
|
|
90
|
-
*/
|
|
91
3
|
export declare const Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
4
|
+
export type { HeadingProps, HeadingLevel, HeadingSize, HeadingWeight, HeadingAlign, HeadingColor, } from './Heading.types';
|
|
92
5
|
//# sourceMappingURL=Heading.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/heading/Heading.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Heading.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/heading/Heading.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAUpD,eAAO,MAAM,OAAO,6GA2CnB,CAAC;AAIF,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,GACb,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HeadingLevel, HeadingSize, HeadingWeight, HeadingColor, HeadingAlign } from './Heading.types';
|
|
2
|
+
|
|
3
|
+
export declare const levelToSizeMap: Record<HeadingLevel, HeadingSize>;
|
|
4
|
+
export declare const sizeStyles: Record<HeadingSize, string>;
|
|
5
|
+
export declare const weightStyles: Record<HeadingWeight, string>;
|
|
6
|
+
export declare const colorStyles: Record<HeadingColor, string>;
|
|
7
|
+
export declare const alignStyles: Record<HeadingAlign, string>;
|
|
8
|
+
export declare const rootStyles = "m-0 leading-tight";
|
|
9
|
+
//# sourceMappingURL=Heading.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/heading/Heading.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACb,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,WAAW,CAO5D,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAQlD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAKtD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CASpD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAKpD,CAAC;AAEF,eAAO,MAAM,UAAU,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
export type HeadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
5
|
+
export type HeadingWeight = 'medium' | 'semibold' | 'bold' | 'black';
|
|
6
|
+
export type HeadingAlign = 'start' | 'center' | 'end' | 'responsive';
|
|
7
|
+
export type HeadingColor = 'text' | 'action' | 'clickable' | 'popup' | 'error' | 'secondary' | 'system-text' | 'grey-07';
|
|
8
|
+
export interface HeadingProps extends Omit<ComponentPropsWithoutRef<'h1'>, 'color'> {
|
|
9
|
+
level?: HeadingLevel;
|
|
10
|
+
size?: HeadingSize;
|
|
11
|
+
weight?: HeadingWeight;
|
|
12
|
+
color?: HeadingColor;
|
|
13
|
+
align?: HeadingAlign;
|
|
14
|
+
className?: string;
|
|
15
|
+
'data-cy'?: string;
|
|
16
|
+
'data-testid'?: string;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=Heading.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/heading/Heading.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAC;AAC3E,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,YAAY,CAAC;AACrE,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,QAAQ,GACR,WAAW,GACX,OAAO,GACP,OAAO,GACP,WAAW,GACX,aAAa,GACb,SAAS,CAAC;AAEd,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACjF,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|
|
@@ -1,80 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LinkProps } from './Link.types';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Link color variants using design token colors
|
|
5
|
-
*/
|
|
6
|
-
export type LinkColor = 'action' | 'clickable' | 'orange' | 'text' | 'system-text';
|
|
7
|
-
/**
|
|
8
|
-
* Link size variants
|
|
9
|
-
*/
|
|
10
|
-
export type LinkSize = 'sm' | 'md' | 'lg';
|
|
11
|
-
/**
|
|
12
|
-
* Link weight variants
|
|
13
|
-
*/
|
|
14
|
-
export type LinkWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
15
|
-
export interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'style' | 'className'> {
|
|
16
|
-
/**
|
|
17
|
-
* Link content
|
|
18
|
-
*/
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Link color variant
|
|
22
|
-
* - action: Teal color (--color-action) - default
|
|
23
|
-
* - clickable: Clickable teal (--color-clickable)
|
|
24
|
-
* - orange: Orange color (--color-button-orange)
|
|
25
|
-
* - text: Default text color (--color-text)
|
|
26
|
-
* - system-text: Grey system text (--color-system-text)
|
|
27
|
-
* @default 'action'
|
|
28
|
-
*/
|
|
29
|
-
color?: LinkColor;
|
|
30
|
-
/**
|
|
31
|
-
* Link text size
|
|
32
|
-
* @default 'md'
|
|
33
|
-
*/
|
|
34
|
-
size?: LinkSize;
|
|
35
|
-
/**
|
|
36
|
-
* Link font weight
|
|
37
|
-
* @default 'medium'
|
|
38
|
-
*/
|
|
39
|
-
weight?: LinkWeight;
|
|
40
|
-
/**
|
|
41
|
-
* Whether the link has an underline
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
|
-
underline?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Whether the link is disabled
|
|
47
|
-
* @default false
|
|
48
|
-
*/
|
|
49
|
-
disabled?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Custom data-cy attribute for Cypress testing
|
|
52
|
-
*/
|
|
53
|
-
'data-cy'?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Custom data-testid attribute for unit testing
|
|
56
|
-
*/
|
|
57
|
-
'data-testid'?: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Link component for navigation and inline links.
|
|
61
|
-
*
|
|
62
|
-
* Based on Figma design patterns for "Log in", "Terms and Conditions", "Resend Code" links.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```tsx
|
|
66
|
-
* // Basic usage
|
|
67
|
-
* <Link href="/login">Log in</Link>
|
|
68
|
-
*
|
|
69
|
-
* // Orange link (for "Resend Code")
|
|
70
|
-
* <Link href="#" color="orange">Resend Code</Link>
|
|
71
|
-
*
|
|
72
|
-
* // Bold link
|
|
73
|
-
* <Link href="/login" weight="bold" color="clickable">Log in</Link>
|
|
74
|
-
*
|
|
75
|
-
* // As button (onClick)
|
|
76
|
-
* <Link as="button" onClick={handleClick}>Click me</Link>
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
3
|
export declare const Link: import('react').ForwardRefExoticComponent<LinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
4
|
+
export type { LinkProps, LinkColor, LinkSize, LinkWeight } from './Link.types';
|
|
80
5
|
//# sourceMappingURL=Link.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/link/Link.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Link.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/link/Link.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAU9C,eAAO,MAAM,IAAI,yGAqDhB,CAAC;AAIF,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LinkColor, LinkSize, LinkWeight } from './Link.types';
|
|
2
|
+
|
|
3
|
+
export declare const colorClasses: Record<LinkColor, string>;
|
|
4
|
+
export declare const sizeClasses: Record<LinkSize, string>;
|
|
5
|
+
export declare const weightClasses: Record<LinkWeight, string>;
|
|
6
|
+
export declare const rootStyles: string;
|
|
7
|
+
export declare const underlineStyles = "underline underline-offset-2";
|
|
8
|
+
export declare const disabledStyles = "opacity-40 cursor-not-allowed pointer-events-none";
|
|
9
|
+
//# sourceMappingURL=Link.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/link/Link.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEpE,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAMlD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAIhD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAKpD,CAAC;AAEF,eAAO,MAAM,UAAU,QAIZ,CAAC;AACZ,eAAO,MAAM,eAAe,iCAAiC,CAAC;AAC9D,eAAO,MAAM,cAAc,sDAAsD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export type LinkColor = 'action' | 'clickable' | 'orange' | 'text' | 'system-text';
|
|
4
|
+
export type LinkSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type LinkWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
6
|
+
export interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'style'> {
|
|
7
|
+
className?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
color?: LinkColor;
|
|
10
|
+
size?: LinkSize;
|
|
11
|
+
weight?: LinkWeight;
|
|
12
|
+
underline?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
'data-cy'?: string;
|
|
15
|
+
'data-testid'?: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=Link.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/link/Link.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAElD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,aAAa,CAAC;AACnF,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1C,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAEpE,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACvF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,93 +1,6 @@
|
|
|
1
|
-
import { ElementType
|
|
1
|
+
import { ElementType } from 'react';
|
|
2
|
+
import { TextProps } from './Text.types';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
export type TextSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
-
/**
|
|
8
|
-
* Text weight variants
|
|
9
|
-
*/
|
|
10
|
-
export type TextWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
11
|
-
/**
|
|
12
|
-
* Text alignment options
|
|
13
|
-
*/
|
|
14
|
-
export type TextAlign = 'start' | 'center' | 'end';
|
|
15
|
-
/**
|
|
16
|
-
* Text color variants using design token colors
|
|
17
|
-
*/
|
|
18
|
-
export type TextColor = 'text' | 'action' | 'clickable' | 'popup' | 'error' | 'secondary' | 'system-text' | 'grey-07';
|
|
19
|
-
/**
|
|
20
|
-
* Base props for Text component
|
|
21
|
-
*/
|
|
22
|
-
export interface TextBaseProps {
|
|
23
|
-
/**
|
|
24
|
-
* Text size variant
|
|
25
|
-
* @default 'md'
|
|
26
|
-
*/
|
|
27
|
-
size?: TextSize;
|
|
28
|
-
/**
|
|
29
|
-
* Text font weight
|
|
30
|
-
* @default 'regular'
|
|
31
|
-
*/
|
|
32
|
-
weight?: TextWeight;
|
|
33
|
-
/**
|
|
34
|
-
* Semantic HTML element to render
|
|
35
|
-
* @default 'p'
|
|
36
|
-
*/
|
|
37
|
-
as?: ElementType;
|
|
38
|
-
/**
|
|
39
|
-
* Text color using design token colors
|
|
40
|
-
* @default 'text'
|
|
41
|
-
*/
|
|
42
|
-
color?: TextColor;
|
|
43
|
-
/**
|
|
44
|
-
* Text alignment
|
|
45
|
-
* @default 'start'
|
|
46
|
-
*/
|
|
47
|
-
align?: TextAlign;
|
|
48
|
-
/**
|
|
49
|
-
* Enable text truncation with ellipsis
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
truncate?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Custom className for additional styling
|
|
55
|
-
*/
|
|
56
|
-
className?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Custom data-cy attribute for Cypress testing
|
|
59
|
-
*/
|
|
60
|
-
'data-cy'?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Custom data-testid attribute for unit testing
|
|
63
|
-
*/
|
|
64
|
-
'data-testid'?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Text content
|
|
67
|
-
*/
|
|
68
|
-
children?: React.ReactNode;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Props type that combines base props with element-specific props
|
|
72
|
-
*/
|
|
73
|
-
export type TextProps<T extends ElementType = 'p'> = TextBaseProps & Omit<ComponentPropsWithoutRef<T>, keyof TextBaseProps>;
|
|
74
|
-
/**
|
|
75
|
-
* Text component for consistent body text rendering
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```tsx
|
|
79
|
-
* // Basic usage
|
|
80
|
-
* <Text>This is body text</Text>
|
|
81
|
-
*
|
|
82
|
-
* // With size and weight
|
|
83
|
-
* <Text size="lg" weight="bold">Large bold text</Text>
|
|
84
|
-
*
|
|
85
|
-
* // As a different element
|
|
86
|
-
* <Text<'label'> as="label" htmlFor="input-id">Label text</Text>
|
|
87
|
-
*
|
|
88
|
-
* // With truncation
|
|
89
|
-
* <Text truncate>Very long text that will be truncated...</Text>
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
export declare const Text: import('react').ForwardRefExoticComponent<Omit<TextProps<any>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
4
|
+
export declare const Text: import('react').ForwardRefExoticComponent<Omit<TextProps<ElementType>, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
5
|
+
export type { TextProps, TextBaseProps, TextSize, TextWeight, TextAlign, TextColor, } from './Text.types';
|
|
93
6
|
//# sourceMappingURL=Text.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/text/Text.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"Text.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/text/Text.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,SAAS,EAA8C,MAAM,cAAc,CAAC;AAG1F,eAAO,MAAM,IAAI,6HA0ChB,CAAC;AAIF,YAAY,EACV,SAAS,EACT,aAAa,EACb,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,GACV,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TextSize, TextWeight, TextColor, TextAlign } from './Text.types';
|
|
2
|
+
|
|
3
|
+
export declare const sizeStyles: Record<TextSize, string>;
|
|
4
|
+
export declare const weightStyles: Record<TextWeight, string>;
|
|
5
|
+
export declare const colorStyles: Record<TextColor, string>;
|
|
6
|
+
export declare const alignStyles: Record<TextAlign, string>;
|
|
7
|
+
export declare const rootStyles = "m-0 leading-normal";
|
|
8
|
+
//# sourceMappingURL=Text.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/text/Text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/E,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAM/C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAKnD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CASjD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAIjD,CAAC;AAEF,eAAO,MAAM,UAAU,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ElementType, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
|
|
3
|
+
export type TextSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export type TextWeight = 'regular' | 'medium' | 'semibold' | 'bold';
|
|
5
|
+
export type TextAlign = 'start' | 'center' | 'end';
|
|
6
|
+
export type TextColor = 'text' | 'action' | 'clickable' | 'popup' | 'error' | 'secondary' | 'system-text' | 'grey-07';
|
|
7
|
+
export interface TextBaseProps {
|
|
8
|
+
size?: TextSize;
|
|
9
|
+
weight?: TextWeight;
|
|
10
|
+
as?: ElementType;
|
|
11
|
+
color?: TextColor;
|
|
12
|
+
align?: TextAlign;
|
|
13
|
+
truncate?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
'data-cy'?: string;
|
|
16
|
+
'data-testid'?: string;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export type TextProps<T extends ElementType = 'p'> = TextBaseProps & Omit<ComponentPropsWithoutRef<T>, keyof TextBaseProps>;
|
|
20
|
+
//# sourceMappingURL=Text.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/text/Text.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AACpE,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACnD,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,QAAQ,GACR,WAAW,GACX,OAAO,GACP,OAAO,GACP,WAAW,GACX,aAAa,GACb,SAAS,CAAC;AAEd,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,WAAW,GAAG,GAAG,IAAI,aAAa,GAChE,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,aAAa,CAAC,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
export { Button } from './components/core/button/Button.component';
|
|
2
3
|
export type { ButtonProps } from './components/core/button/Button.component';
|
|
3
4
|
export { IconButton } from './components/core/icon-button/IconButton.component';
|
|
@@ -38,7 +39,7 @@ export type { ChipProps } from './components/data-display/chip/Chip.component';
|
|
|
38
39
|
export { ChipGroup } from './components/data-display/chip-group/ChipGroup.component';
|
|
39
40
|
export type { ChipGroupProps, ChipGroupItem, } from './components/data-display/chip-group/ChipGroup.component';
|
|
40
41
|
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose, DialogCloseButton, DialogIcon, DialogPortal, DialogOverlay, } from './components/overlays/dialog/Dialog.component';
|
|
41
|
-
export type { DialogOverlayProps, DialogContentProps, DialogHeaderProps, DialogTitleProps, DialogDescriptionProps, DialogFooterProps, DialogCloseButtonProps, DialogIconProps, } from './components/overlays/dialog/Dialog.component';
|
|
42
|
+
export type { DialogOverlayVariant, DialogOverlayProps, DialogContentProps, DialogHeaderProps, DialogTitleProps, DialogDescriptionProps, DialogFooterProps, DialogCloseButtonProps, DialogIconProps, } from './components/overlays/dialog/Dialog.component';
|
|
42
43
|
export { Stack } from './components/layout/stack/Stack.component';
|
|
43
44
|
export type { StackProps } from './components/layout/stack/Stack.component';
|
|
44
45
|
export { Container } from './components/layout/container/Container.component';
|
|
@@ -56,6 +57,8 @@ export type { HeadingProps, HeadingLevel, HeadingSize, HeadingWeight, HeadingAli
|
|
|
56
57
|
export { Link } from './components/typography/link/Link.component';
|
|
57
58
|
export type { LinkProps, LinkColor, LinkSize, LinkWeight, } from './components/typography/link/Link.component';
|
|
58
59
|
export { Spinner } from './components/feedback/spinner/Spinner.component';
|
|
59
|
-
export type { SpinnerProps, SpinnerSize, SpinnerColor, } from './components/feedback/spinner/Spinner.component';
|
|
60
|
+
export type { SpinnerProps, SpinnerSize, SpinnerColor, SpinnerVariant, } from './components/feedback/spinner/Spinner.component';
|
|
61
|
+
export { AiLoader } from './components/feedback/ai-loader/AiLoader.component';
|
|
62
|
+
export type { AiLoaderProps, AiLoaderSize, } from './components/feedback/ai-loader/AiLoader.component';
|
|
60
63
|
export { cn, generateId } from './lib';
|
|
61
64
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAGtB,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,YAAY,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAChF,YAAY,EAAE,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