@okshaun/components 0.4.3 → 0.4.4
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/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +3 -3
- package/dist/preset.js +37 -20
- package/dist/preset.js.map +1 -1
- package/dist/sprite.symbol.html +1 -1
- package/package.json +1 -1
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"maxWidth]___[value:5xl",
|
|
63
63
|
"marginInline]___[value:auto",
|
|
64
64
|
"paddingInline]___[value:24",
|
|
65
|
-
"paddingInline]___[value:
|
|
66
|
-
"paddingInline]___[value:
|
|
65
|
+
"paddingInline]___[value:32]___[cond:md",
|
|
66
|
+
"paddingInline]___[value:48]___[cond:lg",
|
|
67
67
|
"color]___[value:gold.40",
|
|
68
68
|
"gridColumn]___[value:1 / -1",
|
|
69
69
|
"marginTop]___[value:32",
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
"direction]___[value:vertical]___[recipe:divider"
|
|
297
297
|
],
|
|
298
298
|
"label": [
|
|
299
|
-
"family]___[value:
|
|
299
|
+
"family]___[value:sans]___[recipe:label"
|
|
300
300
|
],
|
|
301
301
|
"textinput": [
|
|
302
302
|
"size]___[value:medium]___[recipe:textinput",
|
package/dist/preset.js
CHANGED
|
@@ -3659,6 +3659,12 @@ const colors = defineSemanticTokens.colors({
|
|
|
3659
3659
|
}
|
|
3660
3660
|
},
|
|
3661
3661
|
inverse: {
|
|
3662
|
+
bold: {
|
|
3663
|
+
value: {
|
|
3664
|
+
base: "{colors.darkNeutral.0}",
|
|
3665
|
+
_dark: "{colors.neutral.0}"
|
|
3666
|
+
}
|
|
3667
|
+
},
|
|
3662
3668
|
subtle: {
|
|
3663
3669
|
DEFAULT: { value: { base: "#00000029", _dark: "#ffffff29" } },
|
|
3664
3670
|
hovered: { value: { base: "#0000003d", _dark: "#ffffff3d" } }
|
|
@@ -4186,6 +4192,9 @@ const colors = defineSemanticTokens.colors({
|
|
|
4186
4192
|
subtlest: {
|
|
4187
4193
|
value: { base: "{colors.neutral.70}", _dark: "{colors.darkNeutral.70}" }
|
|
4188
4194
|
},
|
|
4195
|
+
placeholder: {
|
|
4196
|
+
value: { base: "{colors.neutral.50}", _dark: "{colors.darkNeutral.60}" }
|
|
4197
|
+
},
|
|
4189
4198
|
bold: {
|
|
4190
4199
|
value: {
|
|
4191
4200
|
base: "{colors.neutral.100}",
|
|
@@ -4467,7 +4476,7 @@ const conditions = {
|
|
|
4467
4476
|
hover: "&:is(:hover, [data-hover=true])",
|
|
4468
4477
|
focus: "&:is(:focus, [data-focus=true])",
|
|
4469
4478
|
focusWithin: "&:focus-within",
|
|
4470
|
-
focusVisible: "&:is(:focus-visible, [data-focus-visible
|
|
4479
|
+
focusVisible: "&:is(:focus-visible, [data-focus-visible=true])",
|
|
4471
4480
|
disabled: "&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",
|
|
4472
4481
|
active: "&:is(:active, [data-active=true])",
|
|
4473
4482
|
visited: "&:visited",
|
|
@@ -4478,6 +4487,7 @@ const conditions = {
|
|
|
4478
4487
|
checked: '&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])',
|
|
4479
4488
|
enabled: "&:enabled",
|
|
4480
4489
|
expanded: '&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])',
|
|
4490
|
+
collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
|
|
4481
4491
|
highlighted: "&[data-highlighted]",
|
|
4482
4492
|
complete: "&[data-complete]",
|
|
4483
4493
|
incomplete: "&[data-incomplete]",
|
|
@@ -4543,7 +4553,7 @@ const conditions = {
|
|
|
4543
4553
|
current: "&:is([aria-current=true], [data-current])",
|
|
4544
4554
|
currentPage: "&[aria-current=page]",
|
|
4545
4555
|
currentStep: "&[aria-current=step]",
|
|
4546
|
-
today: "
|
|
4556
|
+
today: "&:is([data-today])",
|
|
4547
4557
|
unavailable: "&[data-unavailable]",
|
|
4548
4558
|
rangeStart: "&[data-range-start]",
|
|
4549
4559
|
rangeEnd: "&[data-range-end]",
|
|
@@ -4551,6 +4561,7 @@ const conditions = {
|
|
|
4551
4561
|
topmost: "&[data-topmost]",
|
|
4552
4562
|
motionReduce: "@media (prefers-reduced-motion: reduce)",
|
|
4553
4563
|
motionSafe: "@media (prefers-reduced-motion: no-preference)",
|
|
4564
|
+
paused: "&:is([data-paused=true])",
|
|
4554
4565
|
print: "@media print",
|
|
4555
4566
|
landscape: "@media (orientation: landscape)",
|
|
4556
4567
|
portrait: "@media (orientation: portrait)",
|
|
@@ -4830,11 +4841,11 @@ const textareaBase = {
|
|
|
4830
4841
|
transitionProperty: "background, border-color, color, outline-color",
|
|
4831
4842
|
transitionTimingFunction: "default",
|
|
4832
4843
|
_placeholder: {
|
|
4833
|
-
color: "text.
|
|
4834
|
-
},
|
|
4835
|
-
_hover: {
|
|
4836
|
-
bg: "bg.input.hovered"
|
|
4844
|
+
color: "text.placeholder"
|
|
4837
4845
|
},
|
|
4846
|
+
// _hover: {
|
|
4847
|
+
// bg: 'bg.input.hovered',
|
|
4848
|
+
// },
|
|
4838
4849
|
_focus: {
|
|
4839
4850
|
bg: "bg.input.pressed",
|
|
4840
4851
|
borderColor: "border.focused",
|
|
@@ -4850,6 +4861,9 @@ const textareaBase = {
|
|
|
4850
4861
|
bg: "bg.danger",
|
|
4851
4862
|
borderColor: "border.danger",
|
|
4852
4863
|
color: "text.danger",
|
|
4864
|
+
_placeholder: {
|
|
4865
|
+
color: "text.danger/60"
|
|
4866
|
+
},
|
|
4853
4867
|
_hover: {
|
|
4854
4868
|
bg: "bg.danger.hovered",
|
|
4855
4869
|
borderColor: "border.danger"
|
|
@@ -4946,7 +4960,7 @@ const linkVariants = {
|
|
|
4946
4960
|
_disabled: {
|
|
4947
4961
|
true: {
|
|
4948
4962
|
cursor: "not-allowed",
|
|
4949
|
-
|
|
4963
|
+
color: "text.disabled",
|
|
4950
4964
|
pointerEvents: "none"
|
|
4951
4965
|
}
|
|
4952
4966
|
}
|
|
@@ -4954,7 +4968,7 @@ const linkVariants = {
|
|
|
4954
4968
|
const labelBase = {
|
|
4955
4969
|
fontSize: "14",
|
|
4956
4970
|
fontWeight: "normal",
|
|
4957
|
-
lineHeight: "
|
|
4971
|
+
lineHeight: "tight",
|
|
4958
4972
|
cursor: "default"
|
|
4959
4973
|
};
|
|
4960
4974
|
const labelVariants = {
|
|
@@ -4962,7 +4976,7 @@ const labelVariants = {
|
|
|
4962
4976
|
_disabled: {
|
|
4963
4977
|
true: {
|
|
4964
4978
|
cursor: "not-allowed",
|
|
4965
|
-
|
|
4979
|
+
color: "text.disabled",
|
|
4966
4980
|
pointerEvents: "none"
|
|
4967
4981
|
}
|
|
4968
4982
|
}
|
|
@@ -5000,7 +5014,7 @@ const labelRecipe = defineRecipe({
|
|
|
5000
5014
|
base: labelBase,
|
|
5001
5015
|
variants: labelVariants,
|
|
5002
5016
|
defaultVariants: {
|
|
5003
|
-
family: "
|
|
5017
|
+
family: "sans"
|
|
5004
5018
|
}
|
|
5005
5019
|
});
|
|
5006
5020
|
const checkboxInputBase = {
|
|
@@ -5303,11 +5317,11 @@ const textInputBase = {
|
|
|
5303
5317
|
transitionProperty: "background, border-color, color, outline-color",
|
|
5304
5318
|
transitionTimingFunction: "default",
|
|
5305
5319
|
_placeholder: {
|
|
5306
|
-
color: "text.
|
|
5307
|
-
},
|
|
5308
|
-
_hover: {
|
|
5309
|
-
bg: "bg.input.hovered"
|
|
5320
|
+
color: "text.placeholder"
|
|
5310
5321
|
},
|
|
5322
|
+
// _hover: {
|
|
5323
|
+
// bg: 'bg.input.hovered',
|
|
5324
|
+
// },
|
|
5311
5325
|
_focus: {
|
|
5312
5326
|
bg: "bg.input.pressed",
|
|
5313
5327
|
borderColor: "border.focused",
|
|
@@ -5323,6 +5337,9 @@ const textInputBase = {
|
|
|
5323
5337
|
bg: "bg.danger",
|
|
5324
5338
|
borderColor: "border.danger",
|
|
5325
5339
|
color: "text.danger",
|
|
5340
|
+
_placeholder: {
|
|
5341
|
+
color: "text.danger/60"
|
|
5342
|
+
},
|
|
5326
5343
|
_hover: {
|
|
5327
5344
|
bg: "bg.danger.hovered",
|
|
5328
5345
|
borderColor: "border.danger"
|
|
@@ -5715,6 +5732,7 @@ const themeSwitcherRecipe = defineRecipe({
|
|
|
5715
5732
|
borderWidth: "2",
|
|
5716
5733
|
borderStyle: "solid",
|
|
5717
5734
|
borderColor: "border",
|
|
5735
|
+
bg: "transparent",
|
|
5718
5736
|
color: "transparent",
|
|
5719
5737
|
margin: "8",
|
|
5720
5738
|
borderRadius: "100",
|
|
@@ -5735,18 +5753,18 @@ const themeSwitcherRecipe = defineRecipe({
|
|
|
5735
5753
|
opacity: 0,
|
|
5736
5754
|
display: "block",
|
|
5737
5755
|
borderRadius: "100",
|
|
5738
|
-
bg: "bg.neutral.bold",
|
|
5756
|
+
bg: "bg.neutral.inverse.bold",
|
|
5739
5757
|
transition: "all",
|
|
5740
5758
|
transitionTimingFunction: "default",
|
|
5741
5759
|
transitionDuration: "normal"
|
|
5742
5760
|
},
|
|
5743
5761
|
_hover: {
|
|
5744
5762
|
cursor: "pointer",
|
|
5745
|
-
bg:
|
|
5763
|
+
bg: "bg.neutral.inverse.bold",
|
|
5746
5764
|
borderColor: "bg.neutral.bold",
|
|
5747
5765
|
"&:before": {
|
|
5748
5766
|
inset: "-8",
|
|
5749
|
-
bg:
|
|
5767
|
+
bg: "bg.neutral.inverse.bold",
|
|
5750
5768
|
opacity: 0.25
|
|
5751
5769
|
}
|
|
5752
5770
|
}
|
|
@@ -6831,7 +6849,7 @@ const okshaunPreset = definePreset$1({
|
|
|
6831
6849
|
width: "100%",
|
|
6832
6850
|
maxWidth: "8xl",
|
|
6833
6851
|
mx: "auto",
|
|
6834
|
-
px: { base: "24", md: "
|
|
6852
|
+
px: { base: "24", md: "32", lg: "48" }
|
|
6835
6853
|
},
|
|
6836
6854
|
props
|
|
6837
6855
|
);
|
|
@@ -6862,8 +6880,7 @@ const okshaunPreset = definePreset$1({
|
|
|
6862
6880
|
// Conditions for responsive and state-based styling
|
|
6863
6881
|
conditions: {
|
|
6864
6882
|
...pandaBasePresetConditions,
|
|
6865
|
-
...conditions
|
|
6866
|
-
collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])'
|
|
6883
|
+
...conditions
|
|
6867
6884
|
}
|
|
6868
6885
|
});
|
|
6869
6886
|
export {
|