@okshaun/components 0.4.3 → 0.4.5
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.d.ts +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +7 -3
- package/dist/preset.js +39 -21
- 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",
|
|
@@ -158,6 +158,7 @@
|
|
|
158
158
|
"color]___[value:tan.90]___[cond:_dark",
|
|
159
159
|
"background]___[value:tan.60",
|
|
160
160
|
"background]___[value:tan.40]___[cond:_dark",
|
|
161
|
+
"color]___[value:yellow.60",
|
|
161
162
|
"marginBottom]___[value:12",
|
|
162
163
|
"marginBottom]___[value:8",
|
|
163
164
|
"marginTop]___[value:12",
|
|
@@ -293,10 +294,13 @@
|
|
|
293
294
|
"divider": [
|
|
294
295
|
"direction]___[value:horizontal]___[recipe:divider",
|
|
295
296
|
"weight]___[value:thin]___[recipe:divider",
|
|
297
|
+
"weight]___[value:medium]___[recipe:divider",
|
|
298
|
+
"weight]___[value:thick]___[recipe:divider",
|
|
299
|
+
"weight]___[value:thicker]___[recipe:divider",
|
|
296
300
|
"direction]___[value:vertical]___[recipe:divider"
|
|
297
301
|
],
|
|
298
302
|
"label": [
|
|
299
|
-
"family]___[value:
|
|
303
|
+
"family]___[value:sans]___[recipe:label"
|
|
300
304
|
],
|
|
301
305
|
"textinput": [
|
|
302
306
|
"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 = {
|
|
@@ -5181,7 +5195,6 @@ const spinnerRecipe = defineRecipe({
|
|
|
5181
5195
|
});
|
|
5182
5196
|
const dividerBase = {
|
|
5183
5197
|
"--divider-weight": "sizes.1",
|
|
5184
|
-
borderStyle: "solid",
|
|
5185
5198
|
color: { base: "gray.20", _dark: "gray.80" },
|
|
5186
5199
|
borderColor: "current",
|
|
5187
5200
|
minWidth: "1",
|
|
@@ -5191,10 +5204,12 @@ const dividerVariants = {
|
|
|
5191
5204
|
direction: {
|
|
5192
5205
|
horizontal: {
|
|
5193
5206
|
width: "full",
|
|
5207
|
+
borderTopStyle: "solid",
|
|
5194
5208
|
borderTopWidth: "var(--divider-weight)"
|
|
5195
5209
|
},
|
|
5196
5210
|
vertical: {
|
|
5197
5211
|
height: "full",
|
|
5212
|
+
borderLeftStyle: "solid",
|
|
5198
5213
|
borderLeftWidth: "var(--divider-weight)"
|
|
5199
5214
|
}
|
|
5200
5215
|
},
|
|
@@ -5303,11 +5318,11 @@ const textInputBase = {
|
|
|
5303
5318
|
transitionProperty: "background, border-color, color, outline-color",
|
|
5304
5319
|
transitionTimingFunction: "default",
|
|
5305
5320
|
_placeholder: {
|
|
5306
|
-
color: "text.
|
|
5307
|
-
},
|
|
5308
|
-
_hover: {
|
|
5309
|
-
bg: "bg.input.hovered"
|
|
5321
|
+
color: "text.placeholder"
|
|
5310
5322
|
},
|
|
5323
|
+
// _hover: {
|
|
5324
|
+
// bg: 'bg.input.hovered',
|
|
5325
|
+
// },
|
|
5311
5326
|
_focus: {
|
|
5312
5327
|
bg: "bg.input.pressed",
|
|
5313
5328
|
borderColor: "border.focused",
|
|
@@ -5323,6 +5338,9 @@ const textInputBase = {
|
|
|
5323
5338
|
bg: "bg.danger",
|
|
5324
5339
|
borderColor: "border.danger",
|
|
5325
5340
|
color: "text.danger",
|
|
5341
|
+
_placeholder: {
|
|
5342
|
+
color: "text.danger/60"
|
|
5343
|
+
},
|
|
5326
5344
|
_hover: {
|
|
5327
5345
|
bg: "bg.danger.hovered",
|
|
5328
5346
|
borderColor: "border.danger"
|
|
@@ -5715,6 +5733,7 @@ const themeSwitcherRecipe = defineRecipe({
|
|
|
5715
5733
|
borderWidth: "2",
|
|
5716
5734
|
borderStyle: "solid",
|
|
5717
5735
|
borderColor: "border",
|
|
5736
|
+
bg: "transparent",
|
|
5718
5737
|
color: "transparent",
|
|
5719
5738
|
margin: "8",
|
|
5720
5739
|
borderRadius: "100",
|
|
@@ -5735,18 +5754,18 @@ const themeSwitcherRecipe = defineRecipe({
|
|
|
5735
5754
|
opacity: 0,
|
|
5736
5755
|
display: "block",
|
|
5737
5756
|
borderRadius: "100",
|
|
5738
|
-
bg: "bg.neutral.bold",
|
|
5757
|
+
bg: "bg.neutral.inverse.bold",
|
|
5739
5758
|
transition: "all",
|
|
5740
5759
|
transitionTimingFunction: "default",
|
|
5741
5760
|
transitionDuration: "normal"
|
|
5742
5761
|
},
|
|
5743
5762
|
_hover: {
|
|
5744
5763
|
cursor: "pointer",
|
|
5745
|
-
bg:
|
|
5764
|
+
bg: "bg.neutral.inverse.bold",
|
|
5746
5765
|
borderColor: "bg.neutral.bold",
|
|
5747
5766
|
"&:before": {
|
|
5748
5767
|
inset: "-8",
|
|
5749
|
-
bg:
|
|
5768
|
+
bg: "bg.neutral.inverse.bold",
|
|
5750
5769
|
opacity: 0.25
|
|
5751
5770
|
}
|
|
5752
5771
|
}
|
|
@@ -6831,7 +6850,7 @@ const okshaunPreset = definePreset$1({
|
|
|
6831
6850
|
width: "100%",
|
|
6832
6851
|
maxWidth: "8xl",
|
|
6833
6852
|
mx: "auto",
|
|
6834
|
-
px: { base: "24", md: "
|
|
6853
|
+
px: { base: "24", md: "32", lg: "48" }
|
|
6835
6854
|
},
|
|
6836
6855
|
props
|
|
6837
6856
|
);
|
|
@@ -6862,8 +6881,7 @@ const okshaunPreset = definePreset$1({
|
|
|
6862
6881
|
// Conditions for responsive and state-based styling
|
|
6863
6882
|
conditions: {
|
|
6864
6883
|
...pandaBasePresetConditions,
|
|
6865
|
-
...conditions
|
|
6866
|
-
collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])'
|
|
6884
|
+
...conditions
|
|
6867
6885
|
}
|
|
6868
6886
|
});
|
|
6869
6887
|
export {
|