@okshaun/components 0.4.4 → 0.4.6

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.
@@ -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",
@@ -185,7 +186,62 @@
185
186
  "placeItems]___[value:center",
186
187
  "gap]___[value:12",
187
188
  "marginLeft]___[value:24",
189
+ "gap]___[value:2",
190
+ "maxWidth]___[value:600",
191
+ "fontWeight]___[value:500",
192
+ "width]___[value:100",
193
+ "width]___[value:80",
194
+ "textTransform]___[value:capitalize",
195
+ "background]___[value:blue.30]___[cond:_hover",
196
+ "background]___[value:blue.80]___[cond:_hover<___>_dark",
197
+ "color]___[value:blue.50",
198
+ "borderColor]___[value:blue.40",
199
+ "borderColor]___[value:blue.60]___[cond:_dark",
188
200
  "background]___[value:transparent",
201
+ "background]___[value:blue.10]___[cond:_hover",
202
+ "background]___[value:blue.90/50]___[cond:_hover<___>_dark",
203
+ "background]___[value:blue.10",
204
+ "color]___[value:blue.40",
205
+ "color]___[value:blue.60]___[cond:_dark",
206
+ "background]___[value:purple.30]___[cond:_hover",
207
+ "background]___[value:purple.80]___[cond:_hover<___>_dark",
208
+ "color]___[value:purple.50",
209
+ "color]___[value:purple.40]___[cond:_dark",
210
+ "borderColor]___[value:purple.40",
211
+ "borderColor]___[value:purple.60]___[cond:_dark",
212
+ "background]___[value:purple.10]___[cond:_hover",
213
+ "background]___[value:purple.90/50]___[cond:_hover<___>_dark",
214
+ "background]___[value:purple.10",
215
+ "color]___[value:purple.40",
216
+ "color]___[value:purple.60]___[cond:_dark",
217
+ "background]___[value:orange.30]___[cond:_hover",
218
+ "background]___[value:orange.90]___[cond:_hover<___>_dark",
219
+ "color]___[value:orange.50",
220
+ "color]___[value:orange.40]___[cond:_dark",
221
+ "borderColor]___[value:orange.40",
222
+ "borderColor]___[value:orange.60]___[cond:_dark",
223
+ "background]___[value:orange.10]___[cond:_hover",
224
+ "background]___[value:orange.90/50]___[cond:_hover<___>_dark",
225
+ "background]___[value:orange.10",
226
+ "color]___[value:orange.40",
227
+ "color]___[value:orange.60]___[cond:_dark",
228
+ "background]___[value:green.30]___[cond:_hover",
229
+ "background]___[value:green.80]___[cond:_hover<___>_dark",
230
+ "color]___[value:green.50",
231
+ "color]___[value:green.40]___[cond:_dark",
232
+ "borderColor]___[value:green.40",
233
+ "borderColor]___[value:green.60]___[cond:_dark",
234
+ "background]___[value:green.10]___[cond:_hover",
235
+ "background]___[value:green.90/50]___[cond:_hover<___>_dark",
236
+ "background]___[value:green.10",
237
+ "color]___[value:green.40",
238
+ "color]___[value:green.60]___[cond:_dark",
239
+ "background]___[value:bg.neutral.hovered]___[cond:_hover",
240
+ "borderColor]___[value:border.default",
241
+ "background]___[value:bg.neutral]___[cond:_hover",
242
+ "color]___[value:text.disabled",
243
+ "width]___[value:14",
244
+ "height]___[value:14",
189
245
  "flexWrap]___[value:wrap",
190
246
  "padding]___[value:80",
191
247
  "transitionProperty]___[value:transform",
@@ -196,11 +252,9 @@
196
252
  "width]___[value:20",
197
253
  "height]___[value:20",
198
254
  "fill]___[value:current",
199
- "gap]___[value:2",
200
255
  "font]___[value:mono",
201
256
  "color]___[value:gray.90",
202
257
  "color]___[value:gold.50",
203
- "color]___[value:blue.50",
204
258
  "color]___[value:gray.10]___[cond:_dark",
205
259
  "textStyle]___[value:body-md",
206
260
  "color]___[value:gray.90]___[cond:_dark",
@@ -293,6 +347,9 @@
293
347
  "divider": [
294
348
  "direction]___[value:horizontal]___[recipe:divider",
295
349
  "weight]___[value:thin]___[recipe:divider",
350
+ "weight]___[value:medium]___[recipe:divider",
351
+ "weight]___[value:thick]___[recipe:divider",
352
+ "weight]___[value:thicker]___[recipe:divider",
296
353
  "direction]___[value:vertical]___[recipe:divider"
297
354
  ],
298
355
  "label": [
@@ -318,6 +375,18 @@
318
375
  "position]___[value:right]___[recipe:tooltip",
319
376
  "caret]___[value:true]___[recipe:tooltip"
320
377
  ],
378
+ "chip": [
379
+ "state]___[value:resolved]___[recipe:chip",
380
+ "hue]___[value:blue]___[recipe:chip",
381
+ "hasIcon]___[value:false]___[recipe:chip",
382
+ "state]___[value:placeholder]___[recipe:chip",
383
+ "state]___[value:loading]___[recipe:chip",
384
+ "state]___[value:deleted]___[recipe:chip",
385
+ "hue]___[value:purple]___[recipe:chip",
386
+ "hue]___[value:orange]___[recipe:chip",
387
+ "hue]___[value:green]___[recipe:chip",
388
+ "hue]___[value:gray]___[recipe:chip"
389
+ ],
321
390
  "code": [],
322
391
  "radioInput": [],
323
392
  "toggle": [],
package/dist/preset.js CHANGED
@@ -5195,7 +5195,6 @@ const spinnerRecipe = defineRecipe({
5195
5195
  });
5196
5196
  const dividerBase = {
5197
5197
  "--divider-weight": "sizes.1",
5198
- borderStyle: "solid",
5199
5198
  color: { base: "gray.20", _dark: "gray.80" },
5200
5199
  borderColor: "current",
5201
5200
  minWidth: "1",
@@ -5205,10 +5204,12 @@ const dividerVariants = {
5205
5204
  direction: {
5206
5205
  horizontal: {
5207
5206
  width: "full",
5207
+ borderTopStyle: "solid",
5208
5208
  borderTopWidth: "var(--divider-weight)"
5209
5209
  },
5210
5210
  vertical: {
5211
5211
  height: "full",
5212
+ borderLeftStyle: "solid",
5212
5213
  borderLeftWidth: "var(--divider-weight)"
5213
5214
  }
5214
5215
  },
@@ -5724,6 +5725,265 @@ const tagRecipe = defineRecipe({
5724
5725
  }
5725
5726
  ]
5726
5727
  });
5728
+ const chipBase = {
5729
+ display: "inline-flex",
5730
+ alignItems: "center",
5731
+ gap: "1",
5732
+ px: "2",
5733
+ py: "0",
5734
+ borderRadius: "2",
5735
+ fontFamily: "sans",
5736
+ fontSize: "inherit",
5737
+ lineHeight: "inherit",
5738
+ fontWeight: "500",
5739
+ whiteSpace: "nowrap",
5740
+ verticalAlign: "baseline",
5741
+ cursor: "pointer",
5742
+ transitionProperty: "common",
5743
+ transitionDuration: "fast",
5744
+ userSelect: "none"
5745
+ };
5746
+ const chipRecipe = defineRecipe({
5747
+ className: "chip",
5748
+ jsx: ["Chip"],
5749
+ base: chipBase,
5750
+ variants: {
5751
+ state: {
5752
+ resolved: {},
5753
+ placeholder: {
5754
+ borderStyle: "dashed",
5755
+ borderWidth: "1px"
5756
+ },
5757
+ loading: {
5758
+ cursor: "wait",
5759
+ animation: "pulse"
5760
+ },
5761
+ deleted: {
5762
+ textDecoration: "line-through",
5763
+ cursor: "not-allowed",
5764
+ opacity: 0.5
5765
+ }
5766
+ },
5767
+ hue: {
5768
+ blue: {},
5769
+ purple: {},
5770
+ orange: {},
5771
+ green: {},
5772
+ gray: {}
5773
+ },
5774
+ hasIcon: {
5775
+ true: { pl: "1" },
5776
+ false: {}
5777
+ }
5778
+ },
5779
+ defaultVariants: {
5780
+ state: "resolved",
5781
+ hue: "blue",
5782
+ hasIcon: false
5783
+ },
5784
+ compoundVariants: [
5785
+ // Blue hue (page)
5786
+ {
5787
+ hue: "blue",
5788
+ state: "resolved",
5789
+ css: {
5790
+ color: { base: "blue.70", _dark: "blue.20" },
5791
+ bg: { base: "blue.20", _dark: "blue.90" },
5792
+ _hover: {
5793
+ bg: { base: "blue.30", _dark: "blue.80" }
5794
+ }
5795
+ }
5796
+ },
5797
+ {
5798
+ hue: "blue",
5799
+ state: "placeholder",
5800
+ css: {
5801
+ color: { base: "blue.50", _dark: "blue.40" },
5802
+ borderColor: { base: "blue.40", _dark: "blue.60" },
5803
+ bg: "transparent",
5804
+ _hover: {
5805
+ bg: { base: "blue.10", _dark: "blue.90/50" }
5806
+ }
5807
+ }
5808
+ },
5809
+ {
5810
+ hue: "blue",
5811
+ state: "loading",
5812
+ css: {
5813
+ color: { base: "blue.50", _dark: "blue.40" },
5814
+ bg: { base: "blue.10", _dark: "blue.90" }
5815
+ }
5816
+ },
5817
+ {
5818
+ hue: "blue",
5819
+ state: "deleted",
5820
+ css: {
5821
+ color: { base: "blue.40", _dark: "blue.60" },
5822
+ bg: { base: "blue.10", _dark: "blue.90" }
5823
+ }
5824
+ },
5825
+ // Purple hue (daily_note)
5826
+ {
5827
+ hue: "purple",
5828
+ state: "resolved",
5829
+ css: {
5830
+ color: { base: "purple.70", _dark: "purple.20" },
5831
+ bg: { base: "purple.20", _dark: "purple.90" },
5832
+ _hover: {
5833
+ bg: { base: "purple.30", _dark: "purple.80" }
5834
+ }
5835
+ }
5836
+ },
5837
+ {
5838
+ hue: "purple",
5839
+ state: "placeholder",
5840
+ css: {
5841
+ color: { base: "purple.50", _dark: "purple.40" },
5842
+ borderColor: { base: "purple.40", _dark: "purple.60" },
5843
+ bg: "transparent",
5844
+ _hover: {
5845
+ bg: { base: "purple.10", _dark: "purple.90/50" }
5846
+ }
5847
+ }
5848
+ },
5849
+ {
5850
+ hue: "purple",
5851
+ state: "loading",
5852
+ css: {
5853
+ color: { base: "purple.50", _dark: "purple.40" },
5854
+ bg: { base: "purple.10", _dark: "purple.90" }
5855
+ }
5856
+ },
5857
+ {
5858
+ hue: "purple",
5859
+ state: "deleted",
5860
+ css: {
5861
+ color: { base: "purple.40", _dark: "purple.60" },
5862
+ bg: { base: "purple.10", _dark: "purple.90" }
5863
+ }
5864
+ },
5865
+ // Orange hue (event)
5866
+ {
5867
+ hue: "orange",
5868
+ state: "resolved",
5869
+ css: {
5870
+ color: { base: "orange.70", _dark: "orange.20" },
5871
+ bg: { base: "orange.20", _dark: "orange.100" },
5872
+ _hover: {
5873
+ bg: { base: "orange.30", _dark: "orange.90" }
5874
+ }
5875
+ }
5876
+ },
5877
+ {
5878
+ hue: "orange",
5879
+ state: "placeholder",
5880
+ css: {
5881
+ color: { base: "orange.50", _dark: "orange.40" },
5882
+ borderColor: { base: "orange.40", _dark: "orange.60" },
5883
+ bg: "transparent",
5884
+ _hover: {
5885
+ bg: { base: "orange.10", _dark: "orange.90/50" }
5886
+ }
5887
+ }
5888
+ },
5889
+ {
5890
+ hue: "orange",
5891
+ state: "loading",
5892
+ css: {
5893
+ color: { base: "orange.50", _dark: "orange.40" },
5894
+ bg: { base: "orange.10", _dark: "orange.100" }
5895
+ }
5896
+ },
5897
+ {
5898
+ hue: "orange",
5899
+ state: "deleted",
5900
+ css: {
5901
+ color: { base: "orange.40", _dark: "orange.60" },
5902
+ bg: { base: "orange.10", _dark: "orange.100" }
5903
+ }
5904
+ },
5905
+ // Green hue (person)
5906
+ {
5907
+ hue: "green",
5908
+ state: "resolved",
5909
+ css: {
5910
+ color: { base: "green.70", _dark: "green.20" },
5911
+ bg: { base: "green.20", _dark: "green.90" },
5912
+ _hover: {
5913
+ bg: { base: "green.30", _dark: "green.80" }
5914
+ }
5915
+ }
5916
+ },
5917
+ {
5918
+ hue: "green",
5919
+ state: "placeholder",
5920
+ css: {
5921
+ color: { base: "green.50", _dark: "green.40" },
5922
+ borderColor: { base: "green.40", _dark: "green.60" },
5923
+ bg: "transparent",
5924
+ _hover: {
5925
+ bg: { base: "green.10", _dark: "green.90/50" }
5926
+ }
5927
+ }
5928
+ },
5929
+ {
5930
+ hue: "green",
5931
+ state: "loading",
5932
+ css: {
5933
+ color: { base: "green.50", _dark: "green.40" },
5934
+ bg: { base: "green.10", _dark: "green.90" }
5935
+ }
5936
+ },
5937
+ {
5938
+ hue: "green",
5939
+ state: "deleted",
5940
+ css: {
5941
+ color: { base: "green.40", _dark: "green.60" },
5942
+ bg: { base: "green.10", _dark: "green.90" }
5943
+ }
5944
+ },
5945
+ // Gray hue (default/fallback)
5946
+ {
5947
+ hue: "gray",
5948
+ state: "resolved",
5949
+ css: {
5950
+ color: "text.subtle",
5951
+ bg: "bg.neutral",
5952
+ _hover: {
5953
+ bg: "bg.neutral.hovered"
5954
+ }
5955
+ }
5956
+ },
5957
+ {
5958
+ hue: "gray",
5959
+ state: "placeholder",
5960
+ css: {
5961
+ color: "text.subtlest",
5962
+ borderColor: "border.default",
5963
+ bg: "transparent",
5964
+ _hover: {
5965
+ bg: "bg.neutral"
5966
+ }
5967
+ }
5968
+ },
5969
+ {
5970
+ hue: "gray",
5971
+ state: "loading",
5972
+ css: {
5973
+ color: "text.subtlest",
5974
+ bg: "bg.neutral"
5975
+ }
5976
+ },
5977
+ {
5978
+ hue: "gray",
5979
+ state: "deleted",
5980
+ css: {
5981
+ color: "text.disabled",
5982
+ bg: "bg.neutral"
5983
+ }
5984
+ }
5985
+ ]
5986
+ });
5727
5987
  const themeSwitcherRecipe = defineRecipe({
5728
5988
  className: "themeSwitcher",
5729
5989
  jsx: ["ThemeSwitcher"],
@@ -6739,6 +6999,7 @@ const componentRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
6739
6999
  cardRecipe,
6740
7000
  checkboxInputRecipe,
6741
7001
  checkboxRecipe: checkboxRecipe$1,
7002
+ chipRecipe,
6742
7003
  codeRecipe,
6743
7004
  dividerRecipe,
6744
7005
  headingRecipe,