@korsolutions/ui 0.0.87 → 0.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/components/alert/components/alert-icon.js +0 -1
- package/dist/module/components/alert/components/alert-icon.js.map +1 -1
- package/dist/module/components/alert/variants/default.js +2 -1
- package/dist/module/components/alert/variants/default.js.map +1 -1
- package/dist/module/components/alert/variants/destructive.js +2 -1
- package/dist/module/components/alert/variants/destructive.js.map +1 -1
- package/dist/module/components/alert-dialog/variants/default.js +4 -1
- package/dist/module/components/alert-dialog/variants/default.js.map +1 -1
- package/dist/module/components/avatar/variants/default.js +1 -0
- package/dist/module/components/avatar/variants/default.js.map +1 -1
- package/dist/module/components/badge/variants/default.js +1 -0
- package/dist/module/components/badge/variants/default.js.map +1 -1
- package/dist/module/components/badge/variants/secondary.js +1 -0
- package/dist/module/components/badge/variants/secondary.js.map +1 -1
- package/dist/module/components/button/button.js +8 -3
- package/dist/module/components/button/button.js.map +1 -1
- package/dist/module/components/button/variants/default.js +1 -0
- package/dist/module/components/button/variants/default.js.map +1 -1
- package/dist/module/components/button/variants/ghost.js +1 -0
- package/dist/module/components/button/variants/ghost.js.map +1 -1
- package/dist/module/components/button/variants/secondary.js +1 -0
- package/dist/module/components/button/variants/secondary.js.map +1 -1
- package/dist/module/components/calendar/calendar/variants/default.js +3 -0
- package/dist/module/components/calendar/calendar/variants/default.js.map +1 -1
- package/dist/module/components/calendar/timeline/variants/default.js +1 -0
- package/dist/module/components/calendar/timeline/variants/default.js.map +1 -1
- package/dist/module/components/calendar/week-calendar/variants/default.js +3 -0
- package/dist/module/components/calendar/week-calendar/variants/default.js.map +1 -1
- package/dist/module/components/card/variants/default.js +1 -0
- package/dist/module/components/card/variants/default.js.map +1 -1
- package/dist/module/components/checkbox/variants/default.js +2 -0
- package/dist/module/components/checkbox/variants/default.js.map +1 -1
- package/dist/module/components/checkbox/variants/outlined.js +2 -0
- package/dist/module/components/checkbox/variants/outlined.js.map +1 -1
- package/dist/module/components/combobox/components/combobox-root.js +10 -11
- package/dist/module/components/combobox/components/combobox-root.js.map +1 -1
- package/dist/module/components/combobox/variants/default.js +3 -0
- package/dist/module/components/combobox/variants/default.js.map +1 -1
- package/dist/module/components/empty/variants/default.js +2 -0
- package/dist/module/components/empty/variants/default.js.map +1 -1
- package/dist/module/components/field/variants/default.js +3 -0
- package/dist/module/components/field/variants/default.js.map +1 -1
- package/dist/module/components/icon/icon.js +1 -2
- package/dist/module/components/icon/icon.js.map +1 -1
- package/dist/module/components/input/variants/default.js +2 -0
- package/dist/module/components/input/variants/default.js.map +1 -1
- package/dist/module/components/input/variants/secondary.js +2 -0
- package/dist/module/components/input/variants/secondary.js.map +1 -1
- package/dist/module/components/link/variants/default.js +1 -0
- package/dist/module/components/link/variants/default.js.map +1 -1
- package/dist/module/components/menu/variants/default.js +3 -0
- package/dist/module/components/menu/variants/default.js.map +1 -1
- package/dist/module/components/phone-input/variants/default.js +12 -1
- package/dist/module/components/phone-input/variants/default.js.map +1 -1
- package/dist/module/components/portal/portal.web.js +15 -0
- package/dist/module/components/portal/portal.web.js.map +1 -1
- package/dist/module/components/radio-group/variants/default.js +2 -0
- package/dist/module/components/radio-group/variants/default.js.map +1 -1
- package/dist/module/components/radio-group/variants/outlined.js +2 -0
- package/dist/module/components/radio-group/variants/outlined.js.map +1 -1
- package/dist/module/components/select/variants/default.js +3 -0
- package/dist/module/components/select/variants/default.js.map +1 -1
- package/dist/module/components/sidebar/variants/default.js +1 -0
- package/dist/module/components/sidebar/variants/default.js.map +1 -1
- package/dist/module/components/tabs/variants/default.js +1 -0
- package/dist/module/components/tabs/variants/default.js.map +1 -1
- package/dist/module/components/tabs/variants/line.js +1 -0
- package/dist/module/components/tabs/variants/line.js.map +1 -1
- package/dist/module/components/textarea/variants/default.js +1 -0
- package/dist/module/components/textarea/variants/default.js.map +1 -1
- package/dist/module/components/toast/components/toast-icon.js +0 -1
- package/dist/module/components/toast/components/toast-icon.js.map +1 -1
- package/dist/module/components/toast/variants/danger.js +7 -6
- package/dist/module/components/toast/variants/danger.js.map +1 -1
- package/dist/module/components/toast/variants/default.js +2 -0
- package/dist/module/components/toast/variants/default.js.map +1 -1
- package/dist/module/components/toast/variants/success.js +7 -6
- package/dist/module/components/toast/variants/success.js.map +1 -1
- package/dist/module/components/typography/typography.js +7 -2
- package/dist/module/components/typography/typography.js.map +1 -1
- package/dist/module/components/typography/variants/body.js +28 -0
- package/dist/module/components/typography/variants/body.js.map +1 -0
- package/dist/module/components/typography/variants/heading.js +29 -0
- package/dist/module/components/typography/variants/heading.js.map +1 -0
- package/dist/module/components/typography/variants/index.js +4 -12
- package/dist/module/components/typography/variants/index.js.map +1 -1
- package/dist/module/hooks/use-keyboard-height.js +36 -0
- package/dist/module/hooks/use-keyboard-height.js.map +1 -0
- package/dist/module/hooks/use-relative-position.js +12 -3
- package/dist/module/hooks/use-relative-position.js.map +1 -1
- package/dist/module/themes/default/colors.js +28 -28
- package/dist/module/themes/default/colors.js.map +1 -1
- package/dist/module/themes/default/index.js +2 -2
- package/dist/module/themes/default/index.js.map +1 -1
- package/dist/module/utils/hsla-utils.js +0 -10
- package/dist/module/utils/hsla-utils.js.map +1 -1
- package/dist/module/utils/size-scale.js +5 -3
- package/dist/module/utils/size-scale.js.map +1 -1
- package/dist/typescript/src/components/alert/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/alert/variants/destructive.d.ts.map +1 -1
- package/dist/typescript/src/components/alert-dialog/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/avatar/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/badge/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/badge/variants/secondary.d.ts.map +1 -1
- package/dist/typescript/src/components/button/button.d.ts.map +1 -1
- package/dist/typescript/src/components/button/types.d.ts +3 -2
- package/dist/typescript/src/components/button/types.d.ts.map +1 -1
- package/dist/typescript/src/components/button/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/button/variants/ghost.d.ts.map +1 -1
- package/dist/typescript/src/components/button/variants/secondary.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/calendar/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/timeline/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/calendar/week-calendar/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/card/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/checkbox/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/checkbox/variants/outlined.d.ts.map +1 -1
- package/dist/typescript/src/components/combobox/components/combobox-root.d.ts.map +1 -1
- package/dist/typescript/src/components/combobox/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/empty/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/field/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/icon/icon.d.ts.map +1 -1
- package/dist/typescript/src/components/input/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/input/variants/secondary.d.ts.map +1 -1
- package/dist/typescript/src/components/link/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/menu/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/phone-input/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/portal/portal.web.d.ts.map +1 -1
- package/dist/typescript/src/components/radio-group/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/radio-group/variants/outlined.d.ts.map +1 -1
- package/dist/typescript/src/components/select/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/sidebar/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/tabs/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/tabs/variants/line.d.ts.map +1 -1
- package/dist/typescript/src/components/textarea/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/toast/variants/danger.d.ts.map +1 -1
- package/dist/typescript/src/components/toast/variants/default.d.ts.map +1 -1
- package/dist/typescript/src/components/toast/variants/success.d.ts.map +1 -1
- package/dist/typescript/src/components/typography/typography.d.ts +2 -0
- package/dist/typescript/src/components/typography/typography.d.ts.map +1 -1
- package/dist/typescript/src/components/typography/variants/body.d.ts +4 -0
- package/dist/typescript/src/components/typography/variants/body.d.ts.map +1 -0
- package/dist/typescript/src/components/typography/variants/heading.d.ts +4 -0
- package/dist/typescript/src/components/typography/variants/heading.d.ts.map +1 -0
- package/dist/typescript/src/components/typography/variants/index.d.ts +4 -12
- package/dist/typescript/src/components/typography/variants/index.d.ts.map +1 -1
- package/dist/typescript/src/hooks/use-keyboard-height.d.ts +9 -0
- package/dist/typescript/src/hooks/use-keyboard-height.d.ts.map +1 -0
- package/dist/typescript/src/hooks/use-relative-position.d.ts.map +1 -1
- package/dist/typescript/src/types/props.types.d.ts +0 -1
- package/dist/typescript/src/types/props.types.d.ts.map +1 -1
- package/dist/typescript/src/utils/hsla-utils.d.ts +0 -1
- package/dist/typescript/src/utils/hsla-utils.d.ts.map +1 -1
- package/dist/typescript/src/utils/size-scale.d.ts +3 -1
- package/dist/typescript/src/utils/size-scale.d.ts.map +1 -1
- package/package.json +4 -5
- package/src/components/alert/components/alert-icon.tsx +1 -1
- package/src/components/alert/variants/default.tsx +2 -1
- package/src/components/alert/variants/destructive.tsx +2 -1
- package/src/components/alert-dialog/variants/default.tsx +4 -1
- package/src/components/avatar/variants/default.tsx +1 -0
- package/src/components/badge/variants/default.tsx +1 -0
- package/src/components/badge/variants/secondary.tsx +1 -0
- package/src/components/button/button.tsx +9 -3
- package/src/components/button/types.ts +3 -2
- package/src/components/button/variants/default.tsx +1 -0
- package/src/components/button/variants/ghost.tsx +1 -0
- package/src/components/button/variants/secondary.tsx +1 -0
- package/src/components/calendar/calendar/variants/default.tsx +3 -0
- package/src/components/calendar/timeline/variants/default.tsx +1 -0
- package/src/components/calendar/week-calendar/variants/default.tsx +3 -0
- package/src/components/card/variants/default.tsx +1 -0
- package/src/components/checkbox/variants/default.tsx +2 -0
- package/src/components/checkbox/variants/outlined.tsx +2 -0
- package/src/components/combobox/components/combobox-root.tsx +10 -11
- package/src/components/combobox/variants/default.tsx +3 -0
- package/src/components/empty/variants/default.tsx +2 -0
- package/src/components/field/variants/default.tsx +3 -0
- package/src/components/icon/icon.tsx +0 -1
- package/src/components/input/variants/default.tsx +2 -0
- package/src/components/input/variants/secondary.tsx +2 -0
- package/src/components/link/variants/default.tsx +1 -0
- package/src/components/menu/variants/default.tsx +3 -0
- package/src/components/phone-input/variants/default.tsx +11 -0
- package/src/components/portal/portal.web.tsx +15 -0
- package/src/components/radio-group/variants/default.tsx +2 -0
- package/src/components/radio-group/variants/outlined.tsx +2 -0
- package/src/components/select/variants/default.tsx +3 -0
- package/src/components/sidebar/variants/default.tsx +1 -0
- package/src/components/tabs/variants/default.tsx +1 -0
- package/src/components/tabs/variants/line.tsx +1 -0
- package/src/components/textarea/variants/default.tsx +1 -0
- package/src/components/toast/components/toast-icon.tsx +1 -1
- package/src/components/toast/variants/danger.tsx +6 -5
- package/src/components/toast/variants/default.tsx +2 -0
- package/src/components/toast/variants/success.tsx +6 -5
- package/src/components/typography/typography.tsx +5 -2
- package/src/components/typography/variants/body.tsx +26 -0
- package/src/components/typography/variants/heading.tsx +27 -0
- package/src/components/typography/variants/index.ts +4 -12
- package/src/hooks/use-keyboard-height.ts +42 -0
- package/src/hooks/use-relative-position.ts +17 -3
- package/src/themes/default/colors.ts +28 -28
- package/src/themes/default/index.ts +2 -2
- package/src/types/props.types.ts +0 -1
- package/src/utils/hsla-utils.ts +0 -11
- package/src/utils/size-scale.ts +8 -4
- package/README.md +0 -4
- package/dist/module/components/typography/variants/body-lg.js +0 -18
- package/dist/module/components/typography/variants/body-lg.js.map +0 -1
- package/dist/module/components/typography/variants/body-md.js +0 -18
- package/dist/module/components/typography/variants/body-md.js.map +0 -1
- package/dist/module/components/typography/variants/body-sm.js +0 -18
- package/dist/module/components/typography/variants/body-sm.js.map +0 -1
- package/dist/module/components/typography/variants/heading-lg.js +0 -19
- package/dist/module/components/typography/variants/heading-lg.js.map +0 -1
- package/dist/module/components/typography/variants/heading-md.js +0 -19
- package/dist/module/components/typography/variants/heading-md.js.map +0 -1
- package/dist/module/components/typography/variants/heading-sm.js +0 -19
- package/dist/module/components/typography/variants/heading-sm.js.map +0 -1
- package/dist/typescript/src/components/typography/variants/body-lg.d.ts +0 -3
- package/dist/typescript/src/components/typography/variants/body-lg.d.ts.map +0 -1
- package/dist/typescript/src/components/typography/variants/body-md.d.ts +0 -3
- package/dist/typescript/src/components/typography/variants/body-md.d.ts.map +0 -1
- package/dist/typescript/src/components/typography/variants/body-sm.d.ts +0 -3
- package/dist/typescript/src/components/typography/variants/body-sm.d.ts.map +0 -1
- package/dist/typescript/src/components/typography/variants/heading-lg.d.ts +0 -3
- package/dist/typescript/src/components/typography/variants/heading-lg.d.ts.map +0 -1
- package/dist/typescript/src/components/typography/variants/heading-md.d.ts +0 -3
- package/dist/typescript/src/components/typography/variants/heading-md.d.ts.map +0 -1
- package/dist/typescript/src/components/typography/variants/heading-sm.d.ts +0 -3
- package/dist/typescript/src/components/typography/variants/heading-sm.d.ts.map +0 -1
- package/src/components/typography/variants/body-lg.tsx +0 -14
- package/src/components/typography/variants/body-md.tsx +0 -14
- package/src/components/typography/variants/body-sm.tsx +0 -14
- package/src/components/typography/variants/heading-lg.tsx +0 -15
- package/src/components/typography/variants/heading-md.tsx +0 -15
- package/src/components/typography/variants/heading-sm.tsx +0 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/card/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,wBAAgB,qBAAqB,IAAI,UAAU,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/card/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,wBAAgB,qBAAqB,IAAI,UAAU,CA0ClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/checkbox/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,eAAO,MAAM,yBAAyB,QAAO,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/checkbox/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,eAAO,MAAM,yBAAyB,QAAO,cAqE5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outlined.d.ts","sourceRoot":"","sources":["../../../../../../src/components/checkbox/variants/outlined.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,eAAO,MAAM,0BAA0B,QAAO,
|
|
1
|
+
{"version":3,"file":"outlined.d.ts","sourceRoot":"","sources":["../../../../../../src/components/checkbox/variants/outlined.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,eAAO,MAAM,0BAA0B,QAAO,cAoF7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox-root.d.ts","sourceRoot":"","sources":["../../../../../../src/components/combobox/components/combobox-root.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"combobox-root.d.ts","sourceRoot":"","sources":["../../../../../../src/components/combobox/components/combobox-root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AACpE,OAAO,EAEL,KAAK,SAAS,EAGd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;IACxC,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnC,iGAAiG;IACjG,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEvC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AASD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAgEpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/combobox/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/combobox/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,CAsGpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/empty/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,wBAAgB,sBAAsB,IAAI,WAAW,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/empty/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,wBAAgB,sBAAsB,IAAI,WAAW,CAiCpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,QAAO,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/field/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,QAAO,WA4BzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG;IACjC,OAAO,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG;IACjC,OAAO,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAY7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/input/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/input/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,CA0C9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/input/variants/secondary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/input/variants/secondary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,CA0ChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/link/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,wBAAgB,qBAAqB,IAAI,SAAS,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/link/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,wBAAgB,qBAAqB,IAAI,SAAS,CAWjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/menu/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,qBAAqB,QAAO,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/menu/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,qBAAqB,QAAO,UAgGxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/phone-input/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,IAAI,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/phone-input/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,IAAI,GAAG,gBAAgB,CAoIxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/portal/portal.web.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE3E,wBAAgB,UAAU,gCAEzB;
|
|
1
|
+
{"version":3,"file":"portal.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/portal/portal.web.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE3E,wBAAgB,UAAU,gCAEzB;AAgBD,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,QAA8B,EAAE,QAAQ,EAAE,EAAE,WAAW,+BAerF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio-group/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,2BAA2B,QAAO,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio-group/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,2BAA2B,QAAO,gBA4E9C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outlined.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio-group/variants/outlined.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,4BAA4B,QAAO,
|
|
1
|
+
{"version":3,"file":"outlined.d.ts","sourceRoot":"","sources":["../../../../../../src/components/radio-group/variants/outlined.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,4BAA4B,QAAO,gBAwF/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/select/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/select/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,CAqFhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sidebar/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAgB,wBAAwB,IAAI,aAAa,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sidebar/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAgB,wBAAwB,IAAI,aAAa,CA6FxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,qBAAqB,QAAO,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,qBAAqB,QAAO,UA+DxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/line.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,kBAAkB,QAAO,
|
|
1
|
+
{"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../../../../src/components/tabs/variants/line.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,kBAAkB,QAAO,UAyDrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/textarea/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,wBAAgB,yBAAyB,IAAI,cAAc,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/textarea/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,wBAAgB,yBAAyB,IAAI,cAAc,CAyC1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"danger.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/danger.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,qBAAqB,QAAO,
|
|
1
|
+
{"version":3,"file":"danger.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/danger.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,qBAAqB,QAAO,WAwCxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,sBAAsB,QAAO,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,sBAAsB,QAAO,WAwCzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/success.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,sBAAsB,QAAO,
|
|
1
|
+
{"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/variants/success.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,sBAAsB,QAAO,WAwCzC,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type TextProps as RnTextProps } from "react-native";
|
|
3
|
+
import type { Size } from "../../utils/size-scale";
|
|
3
4
|
import { TypographyVariants } from "./variants";
|
|
4
5
|
export interface TypographyProps extends RnTextProps {
|
|
5
6
|
variant?: keyof typeof TypographyVariants;
|
|
7
|
+
size?: Size;
|
|
6
8
|
}
|
|
7
9
|
export declare function Typography(props: TypographyProps): React.JSX.Element;
|
|
8
10
|
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA8B,KAAK,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,OAAO,CAAC,EAAE,MAAM,OAAO,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../../src/components/typography/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA8B,KAAK,SAAS,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACzF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,OAAO,CAAC,EAAE,MAAM,OAAO,kBAAkB,CAAC;IAC1C,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qBAOhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../../../../src/components/typography/variants/body.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAStD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAexD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../../../../src/components/typography/variants/heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAStD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAgB3D"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useTextVariantBodySm } from "./body-sm";
|
|
4
|
-
import { useTextVariantHeadingLg } from "./heading-lg";
|
|
5
|
-
import { useTextVariantHeadingMd } from "./heading-md";
|
|
6
|
-
import { useTextVariantHeadingSm } from "./heading-sm";
|
|
1
|
+
import { useTextVariantBody } from "./body";
|
|
2
|
+
import { useTextVariantHeading } from "./heading";
|
|
7
3
|
export declare const TypographyVariants: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"body-lg": typeof useTextVariantBodyLg;
|
|
11
|
-
"heading-sm": typeof useTextVariantHeadingSm;
|
|
12
|
-
"heading-md": typeof useTextVariantHeadingMd;
|
|
13
|
-
"heading-lg": typeof useTextVariantHeadingLg;
|
|
4
|
+
body: typeof useTextVariantBody;
|
|
5
|
+
heading: typeof useTextVariantHeading;
|
|
14
6
|
};
|
|
15
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/typography/variants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/typography/variants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,eAAO,MAAM,kBAAkB;;;CAG9B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks the current software keyboard height on native platforms.
|
|
3
|
+
* Returns 0 when the keyboard is hidden or on web.
|
|
4
|
+
*
|
|
5
|
+
* Initializes with the current keyboard height so it works correctly
|
|
6
|
+
* even when the keyboard is already visible at mount time.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useKeyboardHeight(): number;
|
|
9
|
+
//# sourceMappingURL=use-keyboard-height.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-keyboard-height.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-keyboard-height.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CA0B1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-relative-position.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-relative-position.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"use-relative-position.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-relative-position.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAItE,KAAK,uBAAuB,GAAG,IAAI,CAAC,mBAAmB,EAAE,YAAY,GAAG,QAAQ,CAAC,CAAC;AAElF,KAAK,mBAAmB,GAAG,eAAe,GAAG,mBAAmB,GAAG,oBAAoB,CAAC;AAExF,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,eAAe,EACf,aAAa,EACb,WAAW,EACX,UAAU,EACV,aAAa,GACd,EAAE,uBAAuB,GAAG,SAAS,CAsFrC;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,eAAe;IACvB,UAAU,EAAE,cAAc,CAAC;IAC3B,eAAe,EAAE,cAAc,CAAC;IAChC,aAAa,EAAE,eAAe,CAAC;IAC/B,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,UAAU,mBAAoB,SAAQ,eAAe;IACnD,aAAa,EAAE,KAAK,GAAG,QAAQ,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,EAAE,eAK5B,CAAC;AACF,eAAO,MAAM,gBAAgB,EAAE,cAK9B,CAAC;AA6EF,UAAU,oBAAqB,SAAQ,eAAe;IACpD,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.types.d.ts","sourceRoot":"","sources":["../../../../src/types/props.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhF,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG;IACnC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,CAAC,GAAG;IAC3C,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,
|
|
1
|
+
{"version":3,"file":"props.types.d.ts","sourceRoot":"","sources":["../../../../src/types/props.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhF,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG;IACnC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,CAAC,GAAG;IAC3C,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;CAC1C,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const hslaSetAlpha: (hsla: string, alpha: number) => string;
|
|
2
1
|
export declare const hslaSetLightness: (hsla: string, lightness: number) => string;
|
|
3
2
|
export declare const hslaGetLightness: (hsla: string) => number;
|
|
4
3
|
export declare const hslaSetRelativeLightness: (hsla: string, delta: number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hsla-utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/hsla-utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"hsla-utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/hsla-utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,EAAE,WAAW,MAAM,KAAG,MAOlE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,MAI/C,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,MAAM,MAAM,EAAE,OAAO,MAAM,KAAG,MAMtE,CAAC"}
|
|
@@ -8,7 +8,9 @@ interface SizeScaleValues {
|
|
|
8
8
|
gap: number;
|
|
9
9
|
/** fontSize * 0.875 | 1 | 1.125 */
|
|
10
10
|
fontSize: number;
|
|
11
|
-
/** fontSize *
|
|
11
|
+
/** fontSize * 1.25 (line height for text) */
|
|
12
|
+
lineHeight: number;
|
|
13
|
+
/** Equal to lineHeight (icons match text line height) */
|
|
12
14
|
iconSize: number;
|
|
13
15
|
/** 1.75 | 2 | 2.25 */
|
|
14
16
|
strokeWidth: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"size-scale.d.ts","sourceRoot":"","sources":["../../../../src/utils/size-scale.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC,UAAU,eAAe;IACvB,4BAA4B;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,4BAA4B;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,
|
|
1
|
+
{"version":3,"file":"size-scale.d.ts","sourceRoot":"","sources":["../../../../src/utils/size-scale.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC,UAAU,eAAe;IACvB,4BAA4B;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,4BAA4B;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB;AAWD,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,YAAO,EACjB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,eAAe,CAcjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@korsolutions/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/KorSoftwareSolutions/ui/issues"
|
|
6
6
|
},
|
|
@@ -27,12 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@react-navigation/native": "^7.1.28",
|
|
30
|
-
"@types/react": "
|
|
31
|
-
"@types/react-dom": "
|
|
30
|
+
"@types/react": "catalog:",
|
|
31
|
+
"@types/react-dom": "catalog:",
|
|
32
32
|
"react-native-builder-bob": "^0.40.17",
|
|
33
33
|
"react-native-reanimated": "catalog:",
|
|
34
|
-
"react-native-worklets": "catalog:"
|
|
35
|
-
"typescript": "^5.9.3"
|
|
34
|
+
"react-native-worklets": "catalog:"
|
|
36
35
|
},
|
|
37
36
|
"peerDependencies": {
|
|
38
37
|
"react": "*",
|
|
@@ -25,6 +25,7 @@ export const useAlertVariantDefault = (): AlertStyles => {
|
|
|
25
25
|
},
|
|
26
26
|
title: {
|
|
27
27
|
fontSize: fontSize,
|
|
28
|
+
lineHeight: Math.round(fontSize * 1.25),
|
|
28
29
|
fontWeight: "600",
|
|
29
30
|
color: colors.foreground,
|
|
30
31
|
marginBottom: 4,
|
|
@@ -32,7 +33,7 @@ export const useAlertVariantDefault = (): AlertStyles => {
|
|
|
32
33
|
description: {
|
|
33
34
|
fontSize: fontSize * 0.875,
|
|
34
35
|
color: colors.mutedForeground,
|
|
35
|
-
lineHeight:
|
|
36
|
+
lineHeight: Math.round(fontSize * 0.875 * 1.25),
|
|
36
37
|
},
|
|
37
38
|
}),
|
|
38
39
|
);
|
|
@@ -25,6 +25,7 @@ export const useAlertVariantDestructive = (): AlertStyles => {
|
|
|
25
25
|
},
|
|
26
26
|
title: {
|
|
27
27
|
fontSize: fontSize,
|
|
28
|
+
lineHeight: Math.round(fontSize * 1.25),
|
|
28
29
|
fontWeight: "600",
|
|
29
30
|
color: colors.danger,
|
|
30
31
|
marginBottom: 4,
|
|
@@ -32,7 +33,7 @@ export const useAlertVariantDestructive = (): AlertStyles => {
|
|
|
32
33
|
description: {
|
|
33
34
|
fontSize: fontSize * 0.875,
|
|
34
35
|
color: colors.danger,
|
|
35
|
-
lineHeight:
|
|
36
|
+
lineHeight: Math.round(fontSize * 0.875 * 1.25),
|
|
36
37
|
opacity: 0.9,
|
|
37
38
|
},
|
|
38
39
|
}),
|
|
@@ -40,6 +40,7 @@ export const useAlertDialogVariantDefault = (size: Size): AlertDialogStyles => {
|
|
|
40
40
|
},
|
|
41
41
|
title: {
|
|
42
42
|
fontSize: fontSize * 1.25,
|
|
43
|
+
lineHeight: Math.round(fontSize * 1.25 * 1.25),
|
|
43
44
|
fontWeight: "600",
|
|
44
45
|
color: colors.foreground,
|
|
45
46
|
fontFamily,
|
|
@@ -49,7 +50,7 @@ export const useAlertDialogVariantDefault = (size: Size): AlertDialogStyles => {
|
|
|
49
50
|
fontSize,
|
|
50
51
|
color: colors.mutedForeground,
|
|
51
52
|
fontFamily,
|
|
52
|
-
lineHeight: fontSize * 1.
|
|
53
|
+
lineHeight: Math.round(fontSize * 1.25),
|
|
53
54
|
},
|
|
54
55
|
footer: {
|
|
55
56
|
flexDirection: "row",
|
|
@@ -70,6 +71,7 @@ export const useAlertDialogVariantDefault = (size: Size): AlertDialogStyles => {
|
|
|
70
71
|
cancelText: {
|
|
71
72
|
color: colors.foreground,
|
|
72
73
|
fontSize: s.fontSize,
|
|
74
|
+
lineHeight: s.lineHeight,
|
|
73
75
|
fontWeight: "500",
|
|
74
76
|
fontFamily,
|
|
75
77
|
},
|
|
@@ -84,6 +86,7 @@ export const useAlertDialogVariantDefault = (size: Size): AlertDialogStyles => {
|
|
|
84
86
|
actionText: {
|
|
85
87
|
color: colors.primaryForeground,
|
|
86
88
|
fontSize: s.fontSize,
|
|
89
|
+
lineHeight: s.lineHeight,
|
|
87
90
|
fontWeight: "500",
|
|
88
91
|
fontFamily,
|
|
89
92
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
Platform,
|
|
4
4
|
Pressable,
|
|
5
5
|
type PressableProps,
|
|
6
6
|
type StyleProp,
|
|
@@ -11,6 +11,7 @@ import { useOrganizedChildren } from "../../hooks/use-organized-children";
|
|
|
11
11
|
import { useComponentConfig } from "../../themes/provider";
|
|
12
12
|
import { mergeStyles } from "../../utils/calculate-styles";
|
|
13
13
|
import type { Size } from "../../utils/size-scale";
|
|
14
|
+
import { Spinner } from "../spinner";
|
|
14
15
|
import type { ButtonState } from "./types";
|
|
15
16
|
import { ButtonVariants } from "./variants";
|
|
16
17
|
|
|
@@ -66,10 +67,15 @@ export function Button(props: ButtonProps) {
|
|
|
66
67
|
onHoverIn={() => setIsHovered(true)}
|
|
67
68
|
onHoverOut={() => setIsHovered(false)}
|
|
68
69
|
disabled={props.isDisabled}
|
|
69
|
-
style={[
|
|
70
|
+
style={[
|
|
71
|
+
variantStyles.root?.default,
|
|
72
|
+
variantStyles.root?.[state],
|
|
73
|
+
Platform.select({ web: { userSelect: "none" } as ViewStyle }),
|
|
74
|
+
props.style,
|
|
75
|
+
]}
|
|
70
76
|
>
|
|
71
77
|
{organizedChildren}
|
|
72
|
-
{props.isLoading && <
|
|
78
|
+
{props.isLoading && <Spinner {...spinnerProps} />}
|
|
73
79
|
</Pressable>
|
|
74
80
|
);
|
|
75
81
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TextStyle, ViewStyle } from "react-native";
|
|
2
2
|
import type { IconProps } from "../icon";
|
|
3
|
+
import type { SpinnerProps } from "../spinner";
|
|
3
4
|
|
|
4
5
|
export type ButtonState = "default" | "disabled" | "loading" | "hovered";
|
|
5
6
|
|
|
@@ -7,5 +8,5 @@ export interface ButtonStyles {
|
|
|
7
8
|
root?: Partial<Record<ButtonState, ViewStyle>>;
|
|
8
9
|
text?: Partial<Record<ButtonState, TextStyle>>;
|
|
9
10
|
icon?: Partial<Record<ButtonState, IconProps>>;
|
|
10
|
-
spinner?: Partial<Record<ButtonState,
|
|
11
|
+
spinner?: Partial<Record<ButtonState, SpinnerProps>>;
|
|
11
12
|
}
|
|
@@ -22,6 +22,7 @@ export const useCalendarVariantDefault = (): CalendarStyles => {
|
|
|
22
22
|
},
|
|
23
23
|
headerTitle: {
|
|
24
24
|
fontSize: fontSize * 1.125,
|
|
25
|
+
lineHeight: Math.round(fontSize * 1.125 * 1.25),
|
|
25
26
|
fontWeight: "600",
|
|
26
27
|
fontFamily,
|
|
27
28
|
color: colors.foreground,
|
|
@@ -72,6 +73,7 @@ export const useCalendarVariantDefault = (): CalendarStyles => {
|
|
|
72
73
|
},
|
|
73
74
|
weekLabel: {
|
|
74
75
|
fontSize: fontSize * 0.875,
|
|
76
|
+
lineHeight: Math.round(fontSize * 0.875 * 1.25),
|
|
75
77
|
fontWeight: "500",
|
|
76
78
|
fontFamily,
|
|
77
79
|
color: colors.mutedForeground,
|
|
@@ -113,6 +115,7 @@ export const useCalendarVariantDefault = (): CalendarStyles => {
|
|
|
113
115
|
dayText: {
|
|
114
116
|
default: {
|
|
115
117
|
fontSize,
|
|
118
|
+
lineHeight: Math.round(fontSize * 1.25),
|
|
116
119
|
fontFamily,
|
|
117
120
|
color: colors.foreground,
|
|
118
121
|
fontWeight: "400",
|
|
@@ -21,6 +21,7 @@ export const useWeekCalendarVariantDefault = (): WeekCalendarStyles => {
|
|
|
21
21
|
},
|
|
22
22
|
headerTitle: {
|
|
23
23
|
fontSize: fontSize * 1.125,
|
|
24
|
+
lineHeight: Math.round(fontSize * 1.125 * 1.25),
|
|
24
25
|
fontWeight: "600",
|
|
25
26
|
fontFamily,
|
|
26
27
|
color: colors.foreground,
|
|
@@ -71,6 +72,7 @@ export const useWeekCalendarVariantDefault = (): WeekCalendarStyles => {
|
|
|
71
72
|
},
|
|
72
73
|
weekLabel: {
|
|
73
74
|
fontSize: fontSize * 0.875,
|
|
75
|
+
lineHeight: Math.round(fontSize * 0.875 * 1.25),
|
|
74
76
|
fontWeight: "500",
|
|
75
77
|
fontFamily,
|
|
76
78
|
color: colors.mutedForeground,
|
|
@@ -111,6 +113,7 @@ export const useWeekCalendarVariantDefault = (): WeekCalendarStyles => {
|
|
|
111
113
|
dayText: {
|
|
112
114
|
default: {
|
|
113
115
|
fontSize,
|
|
116
|
+
lineHeight: Math.round(fontSize * 1.25),
|
|
114
117
|
fontFamily,
|
|
115
118
|
color: colors.foreground,
|
|
116
119
|
fontWeight: "400",
|
|
@@ -48,6 +48,7 @@ export const useCheckboxVariantDefault = (): CheckboxStyles => {
|
|
|
48
48
|
default: {
|
|
49
49
|
color: colors.foreground,
|
|
50
50
|
fontSize,
|
|
51
|
+
lineHeight: Math.round(fontSize * 1.25),
|
|
51
52
|
fontFamily,
|
|
52
53
|
fontWeight: "500",
|
|
53
54
|
},
|
|
@@ -59,6 +60,7 @@ export const useCheckboxVariantDefault = (): CheckboxStyles => {
|
|
|
59
60
|
default: {
|
|
60
61
|
color: colors.mutedForeground,
|
|
61
62
|
fontSize: fontSize * 0.875,
|
|
63
|
+
lineHeight: Math.round(fontSize * 0.875 * 1.25),
|
|
62
64
|
fontFamily,
|
|
63
65
|
marginTop: 2,
|
|
64
66
|
},
|
|
@@ -63,6 +63,7 @@ export const useCheckboxVariantOutlined = (): CheckboxStyles => {
|
|
|
63
63
|
default: {
|
|
64
64
|
color: colors.foreground,
|
|
65
65
|
fontSize,
|
|
66
|
+
lineHeight: Math.round(fontSize * 1.25),
|
|
66
67
|
fontFamily,
|
|
67
68
|
fontWeight: "500",
|
|
68
69
|
},
|
|
@@ -74,6 +75,7 @@ export const useCheckboxVariantOutlined = (): CheckboxStyles => {
|
|
|
74
75
|
default: {
|
|
75
76
|
color: colors.mutedForeground,
|
|
76
77
|
fontSize: fontSize * 0.875,
|
|
78
|
+
lineHeight: Math.round(fontSize * 0.875 * 1.25),
|
|
77
79
|
fontFamily,
|
|
78
80
|
marginTop: 2,
|
|
79
81
|
},
|