@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
|
@@ -33,12 +33,14 @@ export const useToastVariantDefault = () => {
|
|
|
33
33
|
title: {
|
|
34
34
|
color: colors.foreground,
|
|
35
35
|
fontSize: fontSize,
|
|
36
|
+
lineHeight: Math.round(fontSize * 1.25),
|
|
36
37
|
fontWeight: "600",
|
|
37
38
|
fontFamily
|
|
38
39
|
},
|
|
39
40
|
description: {
|
|
40
41
|
color: colors.mutedForeground,
|
|
41
42
|
fontSize: fontSize * 0.875,
|
|
43
|
+
lineHeight: Math.round(fontSize * 0.875 * 1.25),
|
|
42
44
|
fontFamily
|
|
43
45
|
}
|
|
44
46
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useThemedStyles","useToastVariantDefault","colors","radius","fontFamily","fontSize","root","backgroundColor","surface","borderWidth","borderColor","border","borderRadius","padding","gap","minWidth","maxWidth","flexDirection","body","flex","icon","color","foreground","size","style","marginTop","title","fontWeight","description","mutedForeground"],"sourceRoot":"../../../../../src","sources":["components/toast/variants/default.tsx"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,qCAAkC;AAGlE,OAAO,MAAMC,sBAAsB,GAAGA,CAAA,KAAmB;EACvD,OAAOD,eAAe,CACpB,CAAC;IAAEE,MAAM;IAAEC,MAAM;IAAEC,UAAU;IAAEC;EAAS,CAAC,MAAmB;IAC1DC,IAAI,EAAE;MACJC,eAAe,EAAEL,MAAM,CAACM,OAAO;MAC/BC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAER,MAAM,CAACS,MAAM;MAC1BC,YAAY,EAAET,MAAM;MACpBU,OAAO,EAAE,EAAE;MACXC,GAAG,EAAE,EAAE;MACPC,QAAQ,EAAE,GAAG;MACbC,QAAQ,EAAE,GAAG;MACbC,aAAa,EAAE;IACjB,CAAC;IACDC,IAAI,EAAE;MACJC,IAAI,EAAE,CAAC;MACPL,GAAG,EAAE;IACP,CAAC;IACDM,IAAI,EAAE;MACJC,KAAK,EAAEnB,MAAM,CAACoB,UAAU;MACxBC,IAAI,EAAE,EAAE;MACRC,KAAK,EAAE;QACLC,SAAS,EAAE;MACb;IACF,CAAC;IACDC,KAAK,EAAE;MACLL,KAAK,EAAEnB,MAAM,CAACoB,UAAU;MACxBjB,QAAQ,EAAEA,QAAQ;MAClBsB,UAAU,EAAE,KAAK;
|
|
1
|
+
{"version":3,"names":["useThemedStyles","useToastVariantDefault","colors","radius","fontFamily","fontSize","root","backgroundColor","surface","borderWidth","borderColor","border","borderRadius","padding","gap","minWidth","maxWidth","flexDirection","body","flex","icon","color","foreground","size","style","marginTop","title","lineHeight","Math","round","fontWeight","description","mutedForeground"],"sourceRoot":"../../../../../src","sources":["components/toast/variants/default.tsx"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,qCAAkC;AAGlE,OAAO,MAAMC,sBAAsB,GAAGA,CAAA,KAAmB;EACvD,OAAOD,eAAe,CACpB,CAAC;IAAEE,MAAM;IAAEC,MAAM;IAAEC,UAAU;IAAEC;EAAS,CAAC,MAAmB;IAC1DC,IAAI,EAAE;MACJC,eAAe,EAAEL,MAAM,CAACM,OAAO;MAC/BC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAER,MAAM,CAACS,MAAM;MAC1BC,YAAY,EAAET,MAAM;MACpBU,OAAO,EAAE,EAAE;MACXC,GAAG,EAAE,EAAE;MACPC,QAAQ,EAAE,GAAG;MACbC,QAAQ,EAAE,GAAG;MACbC,aAAa,EAAE;IACjB,CAAC;IACDC,IAAI,EAAE;MACJC,IAAI,EAAE,CAAC;MACPL,GAAG,EAAE;IACP,CAAC;IACDM,IAAI,EAAE;MACJC,KAAK,EAAEnB,MAAM,CAACoB,UAAU;MACxBC,IAAI,EAAE,EAAE;MACRC,KAAK,EAAE;QACLC,SAAS,EAAE;MACb;IACF,CAAC;IACDC,KAAK,EAAE;MACLL,KAAK,EAAEnB,MAAM,CAACoB,UAAU;MACxBjB,QAAQ,EAAEA,QAAQ;MAClBsB,UAAU,EAAEC,IAAI,CAACC,KAAK,CAACxB,QAAQ,GAAG,IAAI,CAAC;MACvCyB,UAAU,EAAE,KAAK;MACjB1B;IACF,CAAC;IACD2B,WAAW,EAAE;MACXV,KAAK,EAAEnB,MAAM,CAAC8B,eAAe;MAC7B3B,QAAQ,EAAEA,QAAQ,GAAG,KAAK;MAC1BsB,UAAU,EAAEC,IAAI,CAACC,KAAK,CAACxB,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC;MAC/CD;IACF;EACF,CAAC,CACH,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ export const useToastVariantSuccess = () => {
|
|
|
9
9
|
fontSize
|
|
10
10
|
}) => ({
|
|
11
11
|
root: {
|
|
12
|
-
backgroundColor: colors.
|
|
12
|
+
backgroundColor: colors.surface,
|
|
13
13
|
borderWidth: 1,
|
|
14
14
|
borderColor: colors.success,
|
|
15
15
|
borderRadius: radius,
|
|
@@ -24,23 +24,24 @@ export const useToastVariantSuccess = () => {
|
|
|
24
24
|
gap: 4
|
|
25
25
|
},
|
|
26
26
|
icon: {
|
|
27
|
-
color: colors.
|
|
27
|
+
color: colors.success,
|
|
28
28
|
size: 16,
|
|
29
29
|
style: {
|
|
30
30
|
marginTop: 2
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
title: {
|
|
34
|
-
color: colors.
|
|
34
|
+
color: colors.success,
|
|
35
35
|
fontSize: fontSize,
|
|
36
|
+
lineHeight: Math.round(fontSize * 1.25),
|
|
36
37
|
fontWeight: "600",
|
|
37
38
|
fontFamily
|
|
38
39
|
},
|
|
39
40
|
description: {
|
|
40
|
-
color: colors.
|
|
41
|
+
color: colors.mutedForeground,
|
|
41
42
|
fontSize: fontSize * 0.875,
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
lineHeight: Math.round(fontSize * 0.875 * 1.25),
|
|
44
|
+
fontFamily
|
|
44
45
|
}
|
|
45
46
|
}));
|
|
46
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useThemedStyles","useToastVariantSuccess","colors","radius","fontFamily","fontSize","root","backgroundColor","
|
|
1
|
+
{"version":3,"names":["useThemedStyles","useToastVariantSuccess","colors","radius","fontFamily","fontSize","root","backgroundColor","surface","borderWidth","borderColor","success","borderRadius","padding","gap","minWidth","maxWidth","flexDirection","body","flex","icon","color","size","style","marginTop","title","lineHeight","Math","round","fontWeight","description","mutedForeground"],"sourceRoot":"../../../../../src","sources":["components/toast/variants/success.tsx"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,qCAAkC;AAGlE,OAAO,MAAMC,sBAAsB,GAAGA,CAAA,KAAmB;EACvD,OAAOD,eAAe,CACpB,CAAC;IAAEE,MAAM;IAAEC,MAAM;IAAEC,UAAU;IAAEC;EAAS,CAAC,MAAmB;IAC1DC,IAAI,EAAE;MACJC,eAAe,EAAEL,MAAM,CAACM,OAAO;MAC/BC,WAAW,EAAE,CAAC;MACdC,WAAW,EAAER,MAAM,CAACS,OAAO;MAC3BC,YAAY,EAAET,MAAM;MACpBU,OAAO,EAAE,EAAE;MACXC,GAAG,EAAE,EAAE;MACPC,QAAQ,EAAE,GAAG;MACbC,QAAQ,EAAE,GAAG;MACbC,aAAa,EAAE;IACjB,CAAC;IACDC,IAAI,EAAE;MACJC,IAAI,EAAE,CAAC;MACPL,GAAG,EAAE;IACP,CAAC;IACDM,IAAI,EAAE;MACJC,KAAK,EAAEnB,MAAM,CAACS,OAAO;MACrBW,IAAI,EAAE,EAAE;MACRC,KAAK,EAAE;QACLC,SAAS,EAAE;MACb;IACF,CAAC;IACDC,KAAK,EAAE;MACLJ,KAAK,EAAEnB,MAAM,CAACS,OAAO;MACrBN,QAAQ,EAAEA,QAAQ;MAClBqB,UAAU,EAAEC,IAAI,CAACC,KAAK,CAACvB,QAAQ,GAAG,IAAI,CAAC;MACvCwB,UAAU,EAAE,KAAK;MACjBzB;IACF,CAAC;IACD0B,WAAW,EAAE;MACXT,KAAK,EAAEnB,MAAM,CAAC6B,eAAe;MAC7B1B,QAAQ,EAAEA,QAAQ,GAAG,KAAK;MAC1BqB,UAAU,EAAEC,IAAI,CAACC,KAAK,CAACvB,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC;MAC/CD;IACF;EACF,CAAC,CACH,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -5,10 +5,15 @@ import { Text as RnText, StyleSheet } from "react-native";
|
|
|
5
5
|
import { TypographyVariants } from "./variants/index.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export function Typography(props) {
|
|
8
|
-
const
|
|
8
|
+
const {
|
|
9
|
+
variant = "body",
|
|
10
|
+
size = "md",
|
|
11
|
+
...rest
|
|
12
|
+
} = props;
|
|
13
|
+
const variantStyles = TypographyVariants[variant](size);
|
|
9
14
|
const combinedStyles = StyleSheet.flatten([variantStyles, props.style]);
|
|
10
15
|
return /*#__PURE__*/_jsx(RnText, {
|
|
11
|
-
...
|
|
16
|
+
...rest,
|
|
12
17
|
style: combinedStyles
|
|
13
18
|
});
|
|
14
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Text","RnText","StyleSheet","TypographyVariants","jsx","_jsx","Typography","props","
|
|
1
|
+
{"version":3,"names":["React","Text","RnText","StyleSheet","TypographyVariants","jsx","_jsx","Typography","props","variant","size","rest","variantStyles","combinedStyles","flatten","style"],"sourceRoot":"../../../../src","sources":["components/typography/typography.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,MAAM,EAAEC,UAAU,QAAuC,cAAc;AAExF,SAASC,kBAAkB,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOhD,OAAO,SAASC,UAAUA,CAACC,KAAsB,EAAE;EACjD,MAAM;IAAEC,OAAO,GAAG,MAAM;IAAEC,IAAI,GAAG,IAAI;IAAE,GAAGC;EAAK,CAAC,GAAGH,KAAK;EACxD,MAAMI,aAAa,GAAGR,kBAAkB,CAACK,OAAO,CAAC,CAACC,IAAI,CAAC;EAEvD,MAAMG,cAAc,GAAGV,UAAU,CAACW,OAAO,CAAC,CAACF,aAAa,EAAEJ,KAAK,CAACO,KAAK,CAAC,CAAC;EAEvE,oBAAOT,IAAA,CAACJ,MAAM;IAAA,GAAKS,IAAI;IAAEI,KAAK,EAAEF;EAAe,CAAE,CAAC;AACpD","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useThemedStyles } from "../../../utils/use-themed-styles.js";
|
|
4
|
+
const bodyScale = {
|
|
5
|
+
sm: 0.875,
|
|
6
|
+
md: 1,
|
|
7
|
+
lg: 1.25
|
|
8
|
+
};
|
|
9
|
+
export function useTextVariantBody(size) {
|
|
10
|
+
return useThemedStyles(({
|
|
11
|
+
colors,
|
|
12
|
+
fontFamily,
|
|
13
|
+
letterSpacing,
|
|
14
|
+
fontSize
|
|
15
|
+
}) => {
|
|
16
|
+
const scale = bodyScale[size];
|
|
17
|
+
const scaledFontSize = fontSize * scale;
|
|
18
|
+
const lineHeight = Math.round(scaledFontSize * 1.25);
|
|
19
|
+
return {
|
|
20
|
+
color: colors.foreground,
|
|
21
|
+
fontSize: scaledFontSize,
|
|
22
|
+
lineHeight,
|
|
23
|
+
fontFamily,
|
|
24
|
+
letterSpacing
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useThemedStyles","bodyScale","sm","md","lg","useTextVariantBody","size","colors","fontFamily","letterSpacing","fontSize","scale","scaledFontSize","lineHeight","Math","round","color","foreground"],"sourceRoot":"../../../../../src","sources":["components/typography/variants/body.tsx"],"mappings":";;AAEA,SAASA,eAAe,QAAQ,qCAAkC;AAElE,MAAMC,SAA+B,GAAG;EACtCC,EAAE,EAAE,KAAK;EACTC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE;AACN,CAAC;AAED,OAAO,SAASC,kBAAkBA,CAACC,IAAU,EAAa;EACxD,OAAON,eAAe,CACpB,CAAC;IAAEO,MAAM;IAAEC,UAAU;IAAEC,aAAa;IAAEC;EAAS,CAAC,KAAgB;IAC9D,MAAMC,KAAK,GAAGV,SAAS,CAACK,IAAI,CAAC;IAC7B,MAAMM,cAAc,GAAGF,QAAQ,GAAGC,KAAK;IACvC,MAAME,UAAU,GAAGC,IAAI,CAACC,KAAK,CAACH,cAAc,GAAG,IAAI,CAAC;IACpD,OAAO;MACLI,KAAK,EAAET,MAAM,CAACU,UAAU;MACxBP,QAAQ,EAAEE,cAAc;MACxBC,UAAU;MACVL,UAAU;MACVC;IACF,CAAC;EACH,CACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useThemedStyles } from "../../../utils/use-themed-styles.js";
|
|
4
|
+
const headingScale = {
|
|
5
|
+
sm: 1,
|
|
6
|
+
md: 1.25,
|
|
7
|
+
lg: 1.5
|
|
8
|
+
};
|
|
9
|
+
export function useTextVariantHeading(size) {
|
|
10
|
+
return useThemedStyles(({
|
|
11
|
+
colors,
|
|
12
|
+
fontFamily,
|
|
13
|
+
letterSpacing,
|
|
14
|
+
fontSize
|
|
15
|
+
}) => {
|
|
16
|
+
const scale = headingScale[size];
|
|
17
|
+
const scaledFontSize = fontSize * scale;
|
|
18
|
+
const lineHeight = Math.round(scaledFontSize * 1.25);
|
|
19
|
+
return {
|
|
20
|
+
color: colors.foreground,
|
|
21
|
+
fontSize: scaledFontSize,
|
|
22
|
+
lineHeight,
|
|
23
|
+
fontFamily,
|
|
24
|
+
letterSpacing,
|
|
25
|
+
fontWeight: "600"
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=heading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useThemedStyles","headingScale","sm","md","lg","useTextVariantHeading","size","colors","fontFamily","letterSpacing","fontSize","scale","scaledFontSize","lineHeight","Math","round","color","foreground","fontWeight"],"sourceRoot":"../../../../../src","sources":["components/typography/variants/heading.tsx"],"mappings":";;AAEA,SAASA,eAAe,QAAQ,qCAAkC;AAElE,MAAMC,YAAkC,GAAG;EACzCC,EAAE,EAAE,CAAC;EACLC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE;AACN,CAAC;AAED,OAAO,SAASC,qBAAqBA,CAACC,IAAU,EAAa;EAC3D,OAAON,eAAe,CACpB,CAAC;IAAEO,MAAM;IAAEC,UAAU;IAAEC,aAAa;IAAEC;EAAS,CAAC,KAAgB;IAC9D,MAAMC,KAAK,GAAGV,YAAY,CAACK,IAAI,CAAC;IAChC,MAAMM,cAAc,GAAGF,QAAQ,GAAGC,KAAK;IACvC,MAAME,UAAU,GAAGC,IAAI,CAACC,KAAK,CAACH,cAAc,GAAG,IAAI,CAAC;IACpD,OAAO;MACLI,KAAK,EAAET,MAAM,CAACU,UAAU;MACxBP,QAAQ,EAAEE,cAAc;MACxBC,UAAU;MACVL,UAAU;MACVC,aAAa;MACbS,UAAU,EAAE;IACd,CAAC;EACH,CACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useTextVariantBodySm } from "./body-sm.js";
|
|
6
|
-
import { useTextVariantHeadingLg } from "./heading-lg.js";
|
|
7
|
-
import { useTextVariantHeadingMd } from "./heading-md.js";
|
|
8
|
-
import { useTextVariantHeadingSm } from "./heading-sm.js";
|
|
3
|
+
import { useTextVariantBody } from "./body.js";
|
|
4
|
+
import { useTextVariantHeading } from "./heading.js";
|
|
9
5
|
export const TypographyVariants = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
["body-lg"]: useTextVariantBodyLg,
|
|
13
|
-
["heading-sm"]: useTextVariantHeadingSm,
|
|
14
|
-
["heading-md"]: useTextVariantHeadingMd,
|
|
15
|
-
["heading-lg"]: useTextVariantHeadingLg
|
|
6
|
+
body: useTextVariantBody,
|
|
7
|
+
heading: useTextVariantHeading
|
|
16
8
|
};
|
|
17
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["useTextVariantBody","useTextVariantHeading","TypographyVariants","body","heading"],"sourceRoot":"../../../../../src","sources":["components/typography/variants/index.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,WAAQ;AAC3C,SAASC,qBAAqB,QAAQ,cAAW;AAEjD,OAAO,MAAMC,kBAAkB,GAAG;EAChCC,IAAI,EAAEH,kBAAkB;EACxBI,OAAO,EAAEH;AACX,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
import { Keyboard, Platform } from "react-native";
|
|
5
|
+
function getCurrentKeyboardHeight() {
|
|
6
|
+
if (Platform.OS === "web") return 0;
|
|
7
|
+
return Keyboard.metrics()?.height ?? 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Tracks the current software keyboard height on native platforms.
|
|
12
|
+
* Returns 0 when the keyboard is hidden or on web.
|
|
13
|
+
*
|
|
14
|
+
* Initializes with the current keyboard height so it works correctly
|
|
15
|
+
* even when the keyboard is already visible at mount time.
|
|
16
|
+
*/
|
|
17
|
+
export function useKeyboardHeight() {
|
|
18
|
+
const [keyboardHeight, setKeyboardHeight] = useState(getCurrentKeyboardHeight);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (Platform.OS === "web") return;
|
|
21
|
+
const showEvent = Platform.OS === "ios" ? "keyboardWillShow" : "keyboardDidShow";
|
|
22
|
+
const hideEvent = Platform.OS === "ios" ? "keyboardWillHide" : "keyboardDidHide";
|
|
23
|
+
const showSubscription = Keyboard.addListener(showEvent, e => {
|
|
24
|
+
setKeyboardHeight(e.endCoordinates.height);
|
|
25
|
+
});
|
|
26
|
+
const hideSubscription = Keyboard.addListener(hideEvent, () => {
|
|
27
|
+
setKeyboardHeight(0);
|
|
28
|
+
});
|
|
29
|
+
return () => {
|
|
30
|
+
showSubscription.remove();
|
|
31
|
+
hideSubscription.remove();
|
|
32
|
+
};
|
|
33
|
+
}, []);
|
|
34
|
+
return keyboardHeight;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=use-keyboard-height.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useState","Keyboard","Platform","getCurrentKeyboardHeight","OS","metrics","height","useKeyboardHeight","keyboardHeight","setKeyboardHeight","showEvent","hideEvent","showSubscription","addListener","e","endCoordinates","hideSubscription","remove"],"sourceRoot":"../../../src","sources":["hooks/use-keyboard-height.ts"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,cAAc;AAEjD,SAASC,wBAAwBA,CAAA,EAAW;EAC1C,IAAID,QAAQ,CAACE,EAAE,KAAK,KAAK,EAAE,OAAO,CAAC;EACnC,OAAOH,QAAQ,CAACI,OAAO,CAAC,CAAC,EAAEC,MAAM,IAAI,CAAC;AACxC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAAA,EAAW;EAC1C,MAAM,CAACC,cAAc,EAAEC,iBAAiB,CAAC,GAAGT,QAAQ,CAACG,wBAAwB,CAAC;EAE9EJ,SAAS,CAAC,MAAM;IACd,IAAIG,QAAQ,CAACE,EAAE,KAAK,KAAK,EAAE;IAE3B,MAAMM,SAAS,GACbR,QAAQ,CAACE,EAAE,KAAK,KAAK,GAAG,kBAAkB,GAAG,iBAAiB;IAChE,MAAMO,SAAS,GACbT,QAAQ,CAACE,EAAE,KAAK,KAAK,GAAG,kBAAkB,GAAG,iBAAiB;IAEhE,MAAMQ,gBAAgB,GAAGX,QAAQ,CAACY,WAAW,CAACH,SAAS,EAAGI,CAAC,IAAK;MAC9DL,iBAAiB,CAACK,CAAC,CAACC,cAAc,CAACT,MAAM,CAAC;IAC5C,CAAC,CAAC;IAEF,MAAMU,gBAAgB,GAAGf,QAAQ,CAACY,WAAW,CAACF,SAAS,EAAE,MAAM;MAC7DF,iBAAiB,CAAC,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,OAAO,MAAM;MACXG,gBAAgB,CAACK,MAAM,CAAC,CAAC;MACzBD,gBAAgB,CAACC,MAAM,CAAC,CAAC;IAC3B,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOT,cAAc;AACvB","ignoreList":[]}
|
|
@@ -5,6 +5,7 @@ import { Platform, useWindowDimensions } from "react-native";
|
|
|
5
5
|
import { usePortalOffset } from "../components/portal/index.js";
|
|
6
6
|
import { useSafeAreaInsets } from "../safe-area/index.js";
|
|
7
7
|
import { useIsReactNavigationModal } from "./use-is-react-navigation-modal.js";
|
|
8
|
+
import { useKeyboardHeight } from "./use-keyboard-height.js";
|
|
8
9
|
export function useRelativePosition({
|
|
9
10
|
align,
|
|
10
11
|
triggerPosition,
|
|
@@ -16,7 +17,15 @@ export function useRelativePosition({
|
|
|
16
17
|
const dimensions = useWindowDimensions();
|
|
17
18
|
const insets = useSafeAreaInsets();
|
|
18
19
|
const portalOffset = usePortalOffset();
|
|
20
|
+
const keyboardHeight = useKeyboardHeight();
|
|
19
21
|
const isReactNavigationModal = useIsReactNavigationModal();
|
|
22
|
+
|
|
23
|
+
// When the keyboard is visible, treat its top edge as the effective
|
|
24
|
+
// bottom boundary so menus/popovers don't render behind it.
|
|
25
|
+
const effectiveInsets = useMemo(() => ({
|
|
26
|
+
...insets,
|
|
27
|
+
bottom: Math.max(insets.bottom, keyboardHeight)
|
|
28
|
+
}), [insets, keyboardHeight]);
|
|
20
29
|
return useMemo(() => {
|
|
21
30
|
const hasLayout = triggerPosition.width > 0 && triggerPosition.height > 0 && contentLayout.width > 0 && contentLayout.height > 0 && portalOffset.isLoaded;
|
|
22
31
|
if (!hasLayout) {
|
|
@@ -43,7 +52,7 @@ export function useRelativePosition({
|
|
|
43
52
|
preferredSide,
|
|
44
53
|
triggerPosition: adjustedTriggerPosition,
|
|
45
54
|
alignOffset,
|
|
46
|
-
insets,
|
|
55
|
+
insets: effectiveInsets,
|
|
47
56
|
sideOffset,
|
|
48
57
|
dimensions
|
|
49
58
|
};
|
|
@@ -56,11 +65,11 @@ export function useRelativePosition({
|
|
|
56
65
|
// Temporary fix to calculate portal content relative position correctly when rendered in a React Navigation modal.
|
|
57
66
|
top: Platform.select({
|
|
58
67
|
default: sidePosition.top,
|
|
59
|
-
ios: isReactNavigationModal ? sidePosition.top +
|
|
68
|
+
ios: isReactNavigationModal ? sidePosition.top + effectiveInsets.top : sidePosition.top
|
|
60
69
|
})
|
|
61
70
|
};
|
|
62
71
|
return style;
|
|
63
|
-
}, [align, preferredSide, alignOffset,
|
|
72
|
+
}, [align, preferredSide, alignOffset, effectiveInsets, triggerPosition, contentLayout, dimensions.width, dimensions.height, sideOffset, portalOffset, isReactNavigationModal]);
|
|
64
73
|
}
|
|
65
74
|
export const DEFAULT_LAYOUT = {
|
|
66
75
|
x: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","Platform","useWindowDimensions","usePortalOffset","useSafeAreaInsets","useIsReactNavigationModal","useRelativePosition","align","triggerPosition","contentLayout","alignOffset","sideOffset","preferredSide","dimensions","insets","portalOffset","isReactNavigationModal","hasLayout","width","height","isLoaded","position","opacity","top","adjustedTriggerPosition","pageX","value","x","pageY","y","args","sidePosition","getSidePosition","alignPosition","getAlignPosition","style","select","default","ios","DEFAULT_LAYOUT","DEFAULT_POSITION","getSide","positionTop","positionBottom","spaceBelow","
|
|
1
|
+
{"version":3,"names":["useMemo","Platform","useWindowDimensions","usePortalOffset","useSafeAreaInsets","useIsReactNavigationModal","useKeyboardHeight","useRelativePosition","align","triggerPosition","contentLayout","alignOffset","sideOffset","preferredSide","dimensions","insets","portalOffset","keyboardHeight","isReactNavigationModal","effectiveInsets","bottom","Math","max","hasLayout","width","height","isLoaded","position","opacity","top","adjustedTriggerPosition","pageX","value","x","pageY","y","args","sidePosition","getSidePosition","alignPosition","getAlignPosition","style","select","default","ios","DEFAULT_LAYOUT","DEFAULT_POSITION","getSide","positionTop","positionBottom","spaceBelow","spaceAbove","side","min","maxContentWidth","left","right","contentWidth","getLeftPosition","doesCollide","spaceLeft","spaceRight","centeredPosition","maxWidth","triggerPageX","triggerWidth"],"sourceRoot":"../../../src","sources":["hooks/use-relative-position.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SACEC,QAAQ,EACRC,mBAAmB,QAId,cAAc;AACrB,SAASC,eAAe,QAAQ,+BAAsB;AACtD,SAASC,iBAAiB,QAA6B,uBAAc;AACrE,SAASC,yBAAyB,QAAQ,oCAAiC;AAC3E,SAASC,iBAAiB,QAAQ,0BAAuB;AAMzD,OAAO,SAASC,mBAAmBA,CAAC;EAClCC,KAAK;EACLC,eAAe;EACfC,aAAa;EACbC,WAAW;EACXC,UAAU;EACVC;AACuB,CAAC,EAAa;EACrC,MAAMC,UAAU,GAAGZ,mBAAmB,CAAC,CAAC;EACxC,MAAMa,MAAM,GAAGX,iBAAiB,CAAC,CAAC;EAClC,MAAMY,YAAY,GAAGb,eAAe,CAAC,CAAC;EACtC,MAAMc,cAAc,GAAGX,iBAAiB,CAAC,CAAC;EAE1C,MAAMY,sBAAsB,GAAGb,yBAAyB,CAAC,CAAC;;EAE1D;EACA;EACA,MAAMc,eAA+B,GAAGnB,OAAO,CAC7C,OAAO;IACL,GAAGe,MAAM;IACTK,MAAM,EAAEC,IAAI,CAACC,GAAG,CAACP,MAAM,CAACK,MAAM,EAAEH,cAAc;EAChD,CAAC,CAAC,EACF,CAACF,MAAM,EAAEE,cAAc,CACzB,CAAC;EAED,OAAOjB,OAAO,CAAC,MAAM;IACnB,MAAMuB,SAAS,GACbd,eAAe,CAACe,KAAK,GAAG,CAAC,IACzBf,eAAe,CAACgB,MAAM,GAAG,CAAC,IAC1Bf,aAAa,CAACc,KAAK,GAAG,CAAC,IACvBd,aAAa,CAACe,MAAM,GAAG,CAAC,IACxBT,YAAY,CAACU,QAAQ;IAEvB,IAAI,CAACH,SAAS,EAAE;MACd,OAAO;QACLI,QAAQ,EAAE,UAAU;QACpBC,OAAO,EAAE,CAAC;QACVC,GAAG,EAAEf,UAAU,CAACW;MAClB,CAAC;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+1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
export const lightColors = {
|
|
4
|
-
background: "hsl(
|
|
5
|
-
foreground: "hsl(
|
|
6
|
-
primary: "hsl(
|
|
7
|
-
primaryForeground: "hsl(
|
|
8
|
-
secondary: "hsl(
|
|
9
|
-
secondaryForeground: "hsl(
|
|
10
|
-
muted: "hsl(
|
|
11
|
-
mutedForeground: "hsl(
|
|
12
|
-
border: "hsl(
|
|
13
|
-
surface: "hsl(
|
|
14
|
-
danger: "hsl(
|
|
15
|
-
success: "hsl(
|
|
16
|
-
warning: "hsl(
|
|
17
|
-
info: "hsl(
|
|
4
|
+
background: "hsl(0, 0%, 98%)",
|
|
5
|
+
foreground: "hsl(0, 0%, 4%)",
|
|
6
|
+
primary: "hsl(0, 0%, 10%)",
|
|
7
|
+
primaryForeground: "hsl(0, 0%, 98%)",
|
|
8
|
+
secondary: "hsl(0, 0%, 93%)",
|
|
9
|
+
secondaryForeground: "hsl(0, 0%, 9%)",
|
|
10
|
+
muted: "hsl(0, 0%, 96%)",
|
|
11
|
+
mutedForeground: "hsl(0, 0%, 45%)",
|
|
12
|
+
border: "hsl(0, 0%, 90%)",
|
|
13
|
+
surface: "hsl(0, 0%, 100%)",
|
|
14
|
+
danger: "hsl(0, 72%, 51%)",
|
|
15
|
+
success: "hsl(142, 71%, 45%)",
|
|
16
|
+
warning: "hsl(38, 92%, 50%)",
|
|
17
|
+
info: "hsl(217, 91%, 60%)"
|
|
18
18
|
};
|
|
19
19
|
export const darkColors = {
|
|
20
|
-
background: "hsl(
|
|
21
|
-
foreground: "hsl(
|
|
22
|
-
primary: "hsl(
|
|
23
|
-
primaryForeground: "hsl(
|
|
24
|
-
secondary: "hsl(
|
|
25
|
-
secondaryForeground: "hsl(
|
|
26
|
-
muted: "hsl(
|
|
27
|
-
mutedForeground: "hsl(
|
|
28
|
-
border: "hsl(
|
|
29
|
-
surface: "hsl(
|
|
30
|
-
danger: "hsl(
|
|
31
|
-
success: "hsl(
|
|
32
|
-
warning: "hsl(
|
|
33
|
-
info: "hsl(
|
|
20
|
+
background: "hsl(0, 0%, 2%)",
|
|
21
|
+
foreground: "hsl(0, 0%, 96%)",
|
|
22
|
+
primary: "hsl(0, 0%, 90%)",
|
|
23
|
+
primaryForeground: "hsl(0, 0%, 10%)",
|
|
24
|
+
secondary: "hsl(0, 0%, 15%)",
|
|
25
|
+
secondaryForeground: "hsl(0, 0%, 98%)",
|
|
26
|
+
muted: "hsl(0, 0%, 15%)",
|
|
27
|
+
mutedForeground: "hsl(0, 0%, 63%)",
|
|
28
|
+
border: "hsl(0, 0%, 16%)",
|
|
29
|
+
surface: "hsl(0, 0%, 8%)",
|
|
30
|
+
danger: "hsl(0, 63%, 60%)",
|
|
31
|
+
success: "hsl(142, 60%, 55%)",
|
|
32
|
+
warning: "hsl(38, 80%, 60%)",
|
|
33
|
+
info: "hsl(217, 80%, 65%)"
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=colors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["lightColors","background","foreground","primary","primaryForeground","secondary","secondaryForeground","muted","mutedForeground","border","surface","danger","success","warning","info","darkColors"],"sourceRoot":"../../../../src","sources":["themes/default/colors.ts"],"mappings":";;AAEA,OAAO,MAAMA,WAAmB,GAAG;EACjCC,UAAU,EAAE,
|
|
1
|
+
{"version":3,"names":["lightColors","background","foreground","primary","primaryForeground","secondary","secondaryForeground","muted","mutedForeground","border","surface","danger","success","warning","info","darkColors"],"sourceRoot":"../../../../src","sources":["themes/default/colors.ts"],"mappings":";;AAEA,OAAO,MAAMA,WAAmB,GAAG;EACjCC,UAAU,EAAE,iBAAiB;EAC7BC,UAAU,EAAE,gBAAgB;EAE5BC,OAAO,EAAE,iBAAiB;EAC1BC,iBAAiB,EAAE,iBAAiB;EAEpCC,SAAS,EAAE,iBAAiB;EAC5BC,mBAAmB,EAAE,gBAAgB;EAErCC,KAAK,EAAE,iBAAiB;EACxBC,eAAe,EAAE,iBAAiB;EAElCC,MAAM,EAAE,iBAAiB;EACzBC,OAAO,EAAE,kBAAkB;EAE3BC,MAAM,EAAE,kBAAkB;EAC1BC,OAAO,EAAE,oBAAoB;EAC7BC,OAAO,EAAE,mBAAmB;EAC5BC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,MAAMC,UAAkB,GAAG;EAChCd,UAAU,EAAE,gBAAgB;EAC5BC,UAAU,EAAE,iBAAiB;EAE7BC,OAAO,EAAE,iBAAiB;EAC1BC,iBAAiB,EAAE,iBAAiB;EAEpCC,SAAS,EAAE,iBAAiB;EAC5BC,mBAAmB,EAAE,iBAAiB;EAEtCC,KAAK,EAAE,iBAAiB;EACxBC,eAAe,EAAE,iBAAiB;EAElCC,MAAM,EAAE,iBAAiB;EACzBC,OAAO,EAAE,gBAAgB;EAEzBC,MAAM,EAAE,kBAAkB;EAC1BC,OAAO,EAAE,oBAAoB;EAC7BC,OAAO,EAAE,mBAAmB;EAC5BC,IAAI,EAAE;AACR,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["darkColors","lightColors","defaultThemeAssets","colors","light","dark","radius","spacing","fontFamily","letterSpacing","fontSize"],"sourceRoot":"../../../../src","sources":["themes/default/index.ts"],"mappings":";;AACA,SAASA,UAAU,EAAEC,WAAW,QAAQ,aAAU;AAElD,OAAO,MAAMC,kBAA+B,GAAG;EAC7CC,MAAM,EAAE;IACNC,KAAK,EAAEH,WAAW;IAClBI,IAAI,EAAEL;EACR,CAAC;EACDM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"names":["darkColors","lightColors","defaultThemeAssets","colors","light","dark","radius","spacing","fontFamily","letterSpacing","fontSize"],"sourceRoot":"../../../../src","sources":["themes/default/index.ts"],"mappings":";;AACA,SAASA,UAAU,EAAEC,WAAW,QAAQ,aAAU;AAElD,OAAO,MAAMC,kBAA+B,GAAG;EAC7CC,MAAM,EAAE;IACNC,KAAK,EAAEH,WAAW;IAClBI,IAAI,EAAEL;EACR,CAAC;EACDM,MAAM,EAAE,CAAC;EACTC,OAAO,EAAE,CAAC;EACVC,UAAU,EAAE,QAAQ;EACpBC,aAAa,EAAE,CAAC;EAChBC,QAAQ,EAAE;AACZ,CAAC","ignoreList":[]}
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
export const hslaSetAlpha = (hsla, alpha) => {
|
|
4
|
-
const parts = hsla.replace(/^hsla?\(|\s+|\)$/g, "").split(",");
|
|
5
|
-
if (parts[0] === undefined) throw new Error("Invalid HSLA color format");
|
|
6
|
-
if (parts[1] === undefined) throw new Error("Invalid HSLA color format");
|
|
7
|
-
if (parts[2] === undefined) throw new Error("Invalid HSLA color format");
|
|
8
|
-
const h = parseInt(parts[0], 10);
|
|
9
|
-
const s = parseInt(parts[1], 10);
|
|
10
|
-
const l = parseInt(parts[2], 10);
|
|
11
|
-
return `hsla(${h}, ${s}%, ${l}%, ${alpha})`;
|
|
12
|
-
};
|
|
13
3
|
export const hslaSetLightness = (hsla, lightness) => {
|
|
14
4
|
const parts = hsla.replace(/^hsla?\(|\s+|\)$/g, "").split(",");
|
|
15
5
|
if (parts[0] === undefined) throw new Error("Invalid HSLA color format");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["hslaSetLightness","hsla","lightness","parts","replace","split","undefined","Error","h","parseInt","s","parseFloat","hslaGetLightness","hslaSetRelativeLightness","delta","currentLightness","newLightness"],"sourceRoot":"../../../src","sources":["utils/hsla-utils.ts"],"mappings":";;AAAA,OAAO,MAAMA,gBAAgB,GAAGA,CAACC,IAAY,EAAEC,SAAiB,KAAa;EAC3E,MAAMC,KAAK,GAAGF,IAAI,CAACG,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAACC,KAAK,CAAC,GAAG,CAAC;EAC9D,IAAIF,KAAK,CAAC,CAAC,CAAC,KAAKG,SAAS,EAAE,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 1,
|
|
16
16
|
fontScale: 1,
|
|
17
|
-
sw:
|
|
17
|
+
sw: 1.75,
|
|
18
18
|
h: 6
|
|
19
19
|
},
|
|
20
20
|
lg: {
|
|
@@ -22,19 +22,21 @@ const scales = {
|
|
|
22
22
|
ph: 3,
|
|
23
23
|
gap: 1.25,
|
|
24
24
|
fontScale: 1.125,
|
|
25
|
-
sw:
|
|
25
|
+
sw: 1.75,
|
|
26
26
|
h: 7.5
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
export function getSizeScale(size = "md", spacing, fontSize) {
|
|
30
30
|
const s = scales[size] ?? scales.md;
|
|
31
31
|
const scaledFontSize = fontSize * s.fontScale;
|
|
32
|
+
const lineHeight = Math.round(scaledFontSize * 1.25);
|
|
32
33
|
return {
|
|
33
34
|
paddingVertical: spacing * s.pv,
|
|
34
35
|
paddingHorizontal: spacing * s.ph,
|
|
35
36
|
gap: spacing * s.gap,
|
|
36
37
|
fontSize: scaledFontSize,
|
|
37
|
-
|
|
38
|
+
lineHeight,
|
|
39
|
+
iconSize: lineHeight,
|
|
38
40
|
strokeWidth: s.sw,
|
|
39
41
|
height: spacing * s.h
|
|
40
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["scales","sm","pv","ph","gap","fontScale","sw","h","md","lg","getSizeScale","size","spacing","fontSize","s","scaledFontSize","paddingVertical","paddingHorizontal","iconSize","strokeWidth","height"],"sourceRoot":"../../../src","sources":["utils/size-scale.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["scales","sm","pv","ph","gap","fontScale","sw","h","md","lg","getSizeScale","size","spacing","fontSize","s","scaledFontSize","lineHeight","Math","round","paddingVertical","paddingHorizontal","iconSize","strokeWidth","height"],"sourceRoot":"../../../src","sources":["utils/size-scale.ts"],"mappings":";;AAqBA,MAAMA,MAGL,GAAG;EACFC,EAAE,EAAE;IAAEC,EAAE,EAAE,CAAC;IAAEC,EAAE,EAAE,GAAG;IAAEC,GAAG,EAAE,IAAI;IAAEC,SAAS,EAAE,KAAK;IAAEC,EAAE,EAAE,IAAI;IAAEC,CAAC,EAAE;EAAI,CAAC;EACrEC,EAAE,EAAE;IAAEN,EAAE,EAAE,GAAG;IAAEC,EAAE,EAAE,CAAC;IAAEC,GAAG,EAAE,CAAC;IAAEC,SAAS,EAAE,CAAC;IAAEC,EAAE,EAAE,IAAI;IAAEC,CAAC,EAAE;EAAE,CAAC;EAC5DE,EAAE,EAAE;IAAEP,EAAE,EAAE,CAAC;IAAEC,EAAE,EAAE,CAAC;IAAEC,GAAG,EAAE,IAAI;IAAEC,SAAS,EAAE,KAAK;IAAEC,EAAE,EAAE,IAAI;IAAEC,CAAC,EAAE;EAAI;AACpE,CAAC;AAED,OAAO,SAASG,YAAYA,CAC1BC,IAAU,GAAG,IAAI,EACjBC,OAAe,EACfC,QAAgB,EACC;EACjB,MAAMC,CAAC,GAAGd,MAAM,CAACW,IAAI,CAAC,IAAIX,MAAM,CAACQ,EAAE;EACnC,MAAMO,cAAc,GAAGF,QAAQ,GAAGC,CAAC,CAACT,SAAS;EAC7C,MAAMW,UAAU,GAAGC,IAAI,CAACC,KAAK,CAACH,cAAc,GAAG,IAAI,CAAC;EACpD,OAAO;IACLI,eAAe,EAAEP,OAAO,GAAGE,CAAC,CAACZ,EAAE;IAC/BkB,iBAAiB,EAAER,OAAO,GAAGE,CAAC,CAACX,EAAE;IACjCC,GAAG,EAAEQ,OAAO,GAAGE,CAAC,CAACV,GAAG;IACpBS,QAAQ,EAAEE,cAAc;IACxBC,UAAU;IACVK,QAAQ,EAAEL,UAAU;IACpBM,WAAW,EAAER,CAAC,CAACR,EAAE;IACjBiB,MAAM,EAAEX,OAAO,GAAGE,CAAC,CAACP;EACtB,CAAC;AACH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert/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/alert/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,QAAO,WAoCzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destructive.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert/variants/destructive.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,0BAA0B,QAAO,
|
|
1
|
+
{"version":3,"file":"destructive.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert/variants/destructive.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,0BAA0B,QAAO,WAqC7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert-dialog/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,4BAA4B,GAAI,MAAM,IAAI,KAAG,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/alert-dialog/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,4BAA4B,GAAI,MAAM,IAAI,KAAG,iBA2FzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/avatar/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,wBAAgB,uBAAuB,IAAI,YAAY,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/avatar/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,wBAAgB,uBAAuB,IAAI,YAAY,CA2BtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,QAAO,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/variants/default.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,QAAO,WA0BzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/variants/secondary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,wBAAwB,QAAO,
|
|
1
|
+
{"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/badge/variants/secondary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,wBAAwB,QAAO,WA0B3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAGnD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;IACnE,OAAO,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACtC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AASD,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,qBA6CxC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
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
|
export type ButtonState = "default" | "disabled" | "loading" | "hovered";
|
|
4
5
|
export interface ButtonStyles {
|
|
5
6
|
root?: Partial<Record<ButtonState, ViewStyle>>;
|
|
6
7
|
text?: Partial<Record<ButtonState, TextStyle>>;
|
|
7
8
|
icon?: Partial<Record<ButtonState, IconProps>>;
|
|
8
|
-
spinner?: Partial<Record<ButtonState,
|
|
9
|
+
spinner?: Partial<Record<ButtonState, SpinnerProps>>;
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;IAC/C,IAAI,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC;CACtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,uBAAuB,GAAI,MAAM,IAAI,KAAG,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,uBAAuB,GAAI,MAAM,IAAI,KAAG,YAqDpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ghost.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/ghost.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,qBAAqB,GAAI,MAAM,IAAI,KAAG,
|
|
1
|
+
{"version":3,"file":"ghost.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/ghost.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,qBAAqB,GAAI,MAAM,IAAI,KAAG,YAqElD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/secondary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,yBAAyB,GAAI,MAAM,IAAI,KAAG,
|
|
1
|
+
{"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/button/variants/secondary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,yBAAyB,GAAI,MAAM,IAAI,KAAG,YAuEtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/calendar/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,yBAAyB,QAAO,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/calendar/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,yBAAyB,QAAO,cA6I5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/timeline/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK/C,eAAO,MAAM,yBAAyB,QAAO,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/timeline/variants/default.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK/C,eAAO,MAAM,yBAAyB,QAAO,cAqD5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/week-calendar/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,6BAA6B,QAAO,
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/calendar/week-calendar/variants/default.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,6BAA6B,QAAO,kBA2IhD,CAAC"}
|