@seed-design/lynx-css 0.2.0-alpha.3 → 0.2.1

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.
Files changed (78) hide show
  1. package/all.css +433 -258
  2. package/all.min.css +1 -1
  3. package/base.css +9 -242
  4. package/base.min.css +1 -1
  5. package/package.json +1 -1
  6. package/recipes/action-button.css +0 -1
  7. package/recipes/app-bar-main.css +67 -0
  8. package/recipes/app-bar-main.d.ts +36 -0
  9. package/recipes/app-bar-main.mjs +63 -0
  10. package/recipes/app-bar.css +101 -0
  11. package/recipes/app-bar.d.ts +32 -0
  12. package/recipes/app-bar.mjs +74 -0
  13. package/recipes/badge.css +157 -0
  14. package/recipes/badge.d.ts +32 -0
  15. package/recipes/badge.mjs +131 -0
  16. package/recipes/bottom-sheet-handle.css +5 -4
  17. package/recipes/bottom-sheet.css +3 -2
  18. package/recipes/checkbox-group.css +1 -1
  19. package/recipes/checkbox-group.d.ts +1 -3
  20. package/recipes/checkbox-group.mjs +2 -12
  21. package/recipes/checkbox.css +5 -3
  22. package/recipes/checkmark.css +1 -0
  23. package/recipes/radio-group.css +1 -1
  24. package/recipes/radio-group.d.ts +1 -3
  25. package/recipes/radio-group.mjs +2 -12
  26. package/recipes/radio.css +5 -3
  27. package/recipes/radiomark.css +1 -0
  28. package/recipes/switch.css +7 -5
  29. package/recipes/switchmark.css +6 -0
  30. package/recipes/tag-group-item.css +1 -0
  31. package/recipes/tag-group.css +6 -0
  32. package/recipes/tag-group.d.ts +1 -1
  33. package/recipes/tag-group.mjs +4 -0
  34. package/vars/color/bg.d.ts +1 -1
  35. package/vars/component/chip.d.ts +21 -1
  36. package/vars/component/chip.mjs +21 -1
  37. package/vars/component/image-frame.d.ts +2 -2
  38. package/vars/component/list-item.d.ts +8 -3
  39. package/vars/component/list-item.mjs +6 -3
  40. package/vars/component/menu-sheet.d.ts +2 -2
  41. package/vars/component/menu-sheet.mjs +2 -2
  42. package/vars/component/top-navigation.d.ts +0 -9
  43. package/vars/component/top-navigation.mjs +0 -9
  44. package/vars/duration.d.ts +2 -1
  45. package/vars/duration.mjs +2 -1
  46. package/vars/gradient.d.ts +2 -2
  47. package/vars/timing-function.d.ts +2 -1
  48. package/vars/timing-function.mjs +2 -1
  49. package/all.layered.css +0 -1953
  50. package/all.layered.min.css +0 -1
  51. package/base.layered.css +0 -865
  52. package/base.layered.min.css +0 -1
  53. package/recipes/action-button.layered.css +0 -406
  54. package/recipes/action-button.layered.mjs +0 -212
  55. package/recipes/bottom-sheet-handle.layered.css +0 -21
  56. package/recipes/bottom-sheet-handle.layered.mjs +0 -36
  57. package/recipes/bottom-sheet.layered.css +0 -106
  58. package/recipes/bottom-sheet.layered.mjs +0 -76
  59. package/recipes/checkbox-group.layered.css +0 -7
  60. package/recipes/checkbox-group.layered.mjs +0 -46
  61. package/recipes/checkbox.layered.css +0 -42
  62. package/recipes/checkbox.layered.mjs +0 -53
  63. package/recipes/checkmark.layered.css +0 -146
  64. package/recipes/checkmark.layered.mjs +0 -220
  65. package/recipes/radio-group.layered.css +0 -7
  66. package/recipes/radio-group.layered.mjs +0 -46
  67. package/recipes/radio.layered.css +0 -42
  68. package/recipes/radio.layered.mjs +0 -53
  69. package/recipes/radiomark.layered.css +0 -112
  70. package/recipes/radiomark.layered.mjs +0 -121
  71. package/recipes/switch.layered.css +0 -48
  72. package/recipes/switch.layered.mjs +0 -49
  73. package/recipes/switchmark.layered.css +0 -88
  74. package/recipes/switchmark.layered.mjs +0 -90
  75. package/recipes/tag-group-item.layered.css +0 -43
  76. package/recipes/tag-group-item.layered.mjs +0 -55
  77. package/recipes/tag-group.layered.css +0 -31
  78. package/recipes/tag-group.layered.mjs +0 -44
@@ -1,21 +0,0 @@
1
- @layer seed-components {
2
- .seed-bottom-sheet-handle__root {
3
- background-color: var(--seed-color-palette-gray-400);
4
- border-radius: 9999px;
5
- width: 36px;
6
- height: 4px;
7
- position: absolute;
8
- top: 6px;
9
- left: 50%;
10
- transform: translateX(-50%);
11
- }
12
-
13
- .seed-bottom-sheet-handle__touchArea {
14
- width: 44px;
15
- height: 44px;
16
- position: absolute;
17
- top: 50%;
18
- left: 50%;
19
- transform: translate(-50%, -50%);
20
- }
21
- }
@@ -1,36 +0,0 @@
1
- import './bottom-sheet-handle.layered.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const bottomSheetHandleSlotNames = [
5
- [
6
- "root",
7
- "seed-bottom-sheet-handle__root"
8
- ],
9
- [
10
- "touchArea",
11
- "seed-bottom-sheet-handle__touchArea"
12
- ]
13
- ];
14
-
15
- const defaultVariant = {};
16
-
17
- const compoundVariants = [];
18
-
19
- export const bottomSheetHandleVariantMap = {};
20
-
21
- export const bottomSheetHandleVariantKeys = Object.keys(bottomSheetHandleVariantMap);
22
-
23
- export function bottomSheetHandle(props) {
24
- return Object.fromEntries(
25
- bottomSheetHandleSlotNames.map(([slot, className]) => {
26
- return [
27
- slot,
28
- createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
29
- ];
30
- }),
31
- );
32
- }
33
-
34
- Object.assign(bottomSheetHandle, { splitVariantProps: (props) => splitVariantProps(props, bottomSheetHandleVariantMap) });
35
-
36
- // @recipe(seed): bottom-sheet-handle
@@ -1,106 +0,0 @@
1
- @layer seed-components {
2
- .seed-bottom-sheet__positioner {
3
- --sheet-z-index: 2;
4
- z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
5
- justify-content: center;
6
- align-items: flex-end;
7
- display: flex;
8
- position: fixed;
9
- top: 0;
10
- right: 0;
11
- bottom: 0;
12
- left: 0;
13
- }
14
-
15
- .seed-bottom-sheet__backdrop {
16
- opacity: 0;
17
- background: var(--seed-color-bg-overlay);
18
- z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
19
- position: fixed;
20
- top: 0;
21
- right: 0;
22
- bottom: 0;
23
- left: 0;
24
- }
25
-
26
- .seed-bottom-sheet__content {
27
- z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
28
- background: var(--seed-color-bg-layer-floating);
29
- border-top-left-radius: var(--seed-radius-r6);
30
- border-top-right-radius: var(--seed-radius-r6);
31
- padding-bottom: env(safe-area-inset-bottom);
32
- flex-direction: column;
33
- flex: 1;
34
- display: flex;
35
- position: relative;
36
- transform: translate3d(0, 100%, 0);
37
- }
38
-
39
- .seed-bottom-sheet__header {
40
- gap: var(--seed-dimension-x2);
41
- padding-top: var(--seed-dimension-x6);
42
- padding-bottom: var(--seed-dimension-x4);
43
- flex-direction: column;
44
- display: flex;
45
- }
46
-
47
- .seed-bottom-sheet__title {
48
- color: var(--seed-color-fg-neutral);
49
- font-size: var(--seed-font-size-t8);
50
- line-height: var(--seed-line-height-t8);
51
- font-weight: var(--seed-font-weight-bold);
52
- margin: 0;
53
- }
54
-
55
- .seed-bottom-sheet__description {
56
- color: var(--seed-color-fg-neutral-muted);
57
- font-size: var(--seed-font-size-t5);
58
- line-height: var(--seed-line-height-t5);
59
- font-weight: var(--seed-font-weight-regular);
60
- padding-left: var(--seed-dimension-spacing-x-global-gutter);
61
- padding-right: var(--seed-dimension-spacing-x-global-gutter);
62
- margin: 0;
63
- }
64
-
65
- .seed-bottom-sheet__body {
66
- padding-left: var(--seed-dimension-spacing-x-global-gutter);
67
- padding-right: var(--seed-dimension-spacing-x-global-gutter);
68
- flex-direction: column;
69
- display: flex;
70
- }
71
-
72
- .seed-bottom-sheet__footer {
73
- padding-left: var(--seed-dimension-spacing-x-global-gutter);
74
- padding-right: var(--seed-dimension-spacing-x-global-gutter);
75
- padding-top: var(--seed-dimension-x3);
76
- padding-bottom: var(--seed-dimension-x4);
77
- flex-direction: column;
78
- display: flex;
79
- }
80
-
81
- .seed-bottom-sheet__closeButton {
82
- justify-content: center;
83
- align-items: center;
84
- display: flex;
85
- position: absolute;
86
- }
87
-
88
- .seed-bottom-sheet__header--headerAlign_left {
89
- justify-content: flex-start;
90
- }
91
-
92
- .seed-bottom-sheet__title--headerAlign_left {
93
- padding-left: var(--seed-dimension-spacing-x-global-gutter);
94
- padding-right: var(--seed-dimension-spacing-x-global-gutter);
95
- }
96
-
97
- .seed-bottom-sheet__header--headerAlign_center {
98
- text-align: center;
99
- justify-content: center;
100
- }
101
-
102
- .seed-bottom-sheet__title--headerAlign_center {
103
- padding-left: var(--seed-dimension-spacing-x-global-gutter);
104
- padding-right: var(--seed-dimension-spacing-x-global-gutter);
105
- }
106
- }
@@ -1,76 +0,0 @@
1
- import './bottom-sheet.layered.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const bottomSheetSlotNames = [
5
- [
6
- "positioner",
7
- "seed-bottom-sheet__positioner"
8
- ],
9
- [
10
- "backdrop",
11
- "seed-bottom-sheet__backdrop"
12
- ],
13
- [
14
- "content",
15
- "seed-bottom-sheet__content"
16
- ],
17
- [
18
- "header",
19
- "seed-bottom-sheet__header"
20
- ],
21
- [
22
- "body",
23
- "seed-bottom-sheet__body"
24
- ],
25
- [
26
- "footer",
27
- "seed-bottom-sheet__footer"
28
- ],
29
- [
30
- "title",
31
- "seed-bottom-sheet__title"
32
- ],
33
- [
34
- "description",
35
- "seed-bottom-sheet__description"
36
- ],
37
- [
38
- "closeButton",
39
- "seed-bottom-sheet__closeButton"
40
- ]
41
- ];
42
-
43
- const defaultVariant = {
44
- "headerAlign": "left",
45
- "skipAnimation": false
46
- };
47
-
48
- const compoundVariants = [];
49
-
50
- export const bottomSheetVariantMap = {
51
- "headerAlign": [
52
- "left",
53
- "center"
54
- ],
55
- "skipAnimation": [
56
- true,
57
- false
58
- ]
59
- };
60
-
61
- export const bottomSheetVariantKeys = Object.keys(bottomSheetVariantMap);
62
-
63
- export function bottomSheet(props) {
64
- return Object.fromEntries(
65
- bottomSheetSlotNames.map(([slot, className]) => {
66
- return [
67
- slot,
68
- createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
69
- ];
70
- }),
71
- );
72
- }
73
-
74
- Object.assign(bottomSheet, { splitVariantProps: (props) => splitVariantProps(props, bottomSheetVariantMap) });
75
-
76
- // @recipe(seed): bottom-sheet
@@ -1,7 +0,0 @@
1
- @layer seed-components {
2
- .seed-checkbox-group {
3
- gap: var(--seed-dimension-x1);
4
- flex-direction: column;
5
- display: flex;
6
- }
7
- }
@@ -1,46 +0,0 @@
1
- import './checkbox-group.layered.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const checkboxGroupSlotNames = [
5
- [
6
- "root",
7
- "seed-checkbox-group"
8
- ],
9
- [
10
- "text",
11
- "seed-checkbox-group__text"
12
- ]
13
- ];
14
-
15
- const defaultVariant = {};
16
-
17
- const compoundVariants = [];
18
-
19
- export const checkboxGroupVariantMap = {
20
- "disabled": [
21
- true
22
- ],
23
- "loading": [
24
- true
25
- ],
26
- "checked": [
27
- true
28
- ]
29
- };
30
-
31
- export const checkboxGroupVariantKeys = Object.keys(checkboxGroupVariantMap);
32
-
33
- export function checkboxGroup(props) {
34
- return Object.fromEntries(
35
- checkboxGroupSlotNames.map(([slot, className]) => {
36
- return [
37
- slot,
38
- createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
39
- ];
40
- }),
41
- );
42
- }
43
-
44
- Object.assign(checkboxGroup, { splitVariantProps: (props) => splitVariantProps(props, checkboxGroupVariantMap) });
45
-
46
- // @recipe(seed): checkbox-group
@@ -1,42 +0,0 @@
1
- @layer seed-components {
2
- .seed-checkbox__root {
3
- align-items: center;
4
- gap: var(--seed-dimension-x2);
5
- display: flex;
6
- position: relative;
7
- }
8
-
9
- .seed-checkbox__label {
10
- color: var(--seed-color-fg-neutral);
11
- }
12
-
13
- .seed-checkbox__label--weight_regular {
14
- font-weight: var(--seed-font-weight-regular);
15
- }
16
-
17
- .seed-checkbox__label--weight_bold {
18
- font-weight: var(--seed-font-weight-bold);
19
- }
20
-
21
- .seed-checkbox__root--size_medium {
22
- min-height: var(--seed-dimension-x8);
23
- }
24
-
25
- .seed-checkbox__label--size_medium {
26
- font-size: var(--seed-font-size-t4);
27
- line-height: var(--seed-line-height-t4);
28
- }
29
-
30
- .seed-checkbox__root--size_large {
31
- min-height: var(--seed-dimension-x9);
32
- }
33
-
34
- .seed-checkbox__label--size_large {
35
- font-size: var(--seed-font-size-t5);
36
- line-height: var(--seed-line-height-t5);
37
- }
38
-
39
- .seed-checkbox__label--disabled_true {
40
- color: var(--seed-color-fg-disabled);
41
- }
42
- }
@@ -1,53 +0,0 @@
1
- import './checkbox.layered.css';
2
- import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
3
-
4
- const checkboxSlotNames = [
5
- [
6
- "root",
7
- "seed-checkbox__root"
8
- ],
9
- [
10
- "label",
11
- "seed-checkbox__label"
12
- ]
13
- ];
14
-
15
- const defaultVariant = {
16
- "weight": "regular",
17
- "size": "medium",
18
- "disabled": false
19
- };
20
-
21
- const compoundVariants = [];
22
-
23
- export const checkboxVariantMap = {
24
- "weight": [
25
- "regular",
26
- "bold"
27
- ],
28
- "size": [
29
- "medium",
30
- "large"
31
- ],
32
- "disabled": [
33
- true,
34
- false
35
- ]
36
- };
37
-
38
- export const checkboxVariantKeys = Object.keys(checkboxVariantMap);
39
-
40
- export function checkbox(props) {
41
- return Object.fromEntries(
42
- checkboxSlotNames.map(([slot, className]) => {
43
- return [
44
- slot,
45
- createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
46
- ];
47
- }),
48
- );
49
- }
50
-
51
- Object.assign(checkbox, { splitVariantProps: (props) => splitVariantProps(props, checkboxVariantMap) });
52
-
53
- // @recipe(seed): checkbox
@@ -1,146 +0,0 @@
1
- @layer seed-components {
2
- .seed-checkmark__root {
3
- transition: background-color var(--seed-duration-color-transition) var(--seed-timing-function-easing);
4
- flex: none;
5
- justify-content: center;
6
- align-items: center;
7
- display: flex;
8
- position: relative;
9
- }
10
-
11
- .seed-checkmark__icon {
12
- position: absolute;
13
- }
14
-
15
- .seed-checkmark__root--variant_square {
16
- border-style: solid;
17
- border-width: 1px;
18
- border-color: var(--seed-color-stroke-neutral-weak);
19
- }
20
-
21
- .seed-checkmark__icon--variant_ghost {
22
- color: var(--seed-color-fg-placeholder);
23
- transition: color var(--seed-duration-color-transition) var(--seed-timing-function-easing);
24
- }
25
-
26
- .seed-checkmark__root--size_medium {
27
- width: var(--seed-dimension-x5);
28
- height: var(--seed-dimension-x5);
29
- border-radius: var(--seed-radius-r1);
30
- }
31
-
32
- .seed-checkmark__root--size_large {
33
- width: var(--seed-dimension-x6);
34
- height: var(--seed-dimension-x6);
35
- border-radius: var(--seed-radius-r1);
36
- }
37
-
38
- .seed-checkmark__icon--variant_square-size_medium {
39
- width: 12px;
40
- height: 12px;
41
- }
42
-
43
- .seed-checkmark__icon--variant_square-size_large, .seed-checkmark__icon--variant_ghost-size_medium {
44
- width: 14px;
45
- height: 14px;
46
- }
47
-
48
- .seed-checkmark__icon--variant_ghost-size_large {
49
- width: 18px;
50
- height: 18px;
51
- }
52
-
53
- .seed-checkmark__icon--variant_square-checked_false-indeterminate_false {
54
- opacity: 0;
55
- }
56
-
57
- .seed-checkmark__root--variant_square-checked_true-disabled_false, .seed-checkmark__root--variant_square-indeterminate_true-disabled_false {
58
- border-width: 0;
59
- border-color: #0000;
60
- }
61
-
62
- .seed-checkmark__root--variant_square-tone_brand-checked_true-disabled_false {
63
- background-color: var(--seed-color-bg-brand-solid);
64
- }
65
-
66
- .seed-checkmark__icon--variant_square-tone_brand-checked_true-disabled_false {
67
- color: var(--seed-color-palette-static-white);
68
- }
69
-
70
- .seed-checkmark__root--variant_square-tone_neutral-checked_true-disabled_false {
71
- background-color: var(--seed-color-bg-neutral-inverted);
72
- }
73
-
74
- .seed-checkmark__icon--variant_square-tone_neutral-checked_true-disabled_false {
75
- color: var(--seed-color-fg-neutral-inverted);
76
- }
77
-
78
- .seed-checkmark__root--variant_square-tone_brand-indeterminate_true-disabled_false {
79
- background-color: var(--seed-color-bg-brand-solid);
80
- }
81
-
82
- .seed-checkmark__icon--variant_square-tone_brand-indeterminate_true-disabled_false {
83
- color: var(--seed-color-palette-static-white);
84
- }
85
-
86
- .seed-checkmark__root--variant_square-tone_neutral-indeterminate_true-disabled_false {
87
- background-color: var(--seed-color-bg-neutral-inverted);
88
- }
89
-
90
- .seed-checkmark__icon--variant_square-tone_neutral-indeterminate_true-disabled_false {
91
- color: var(--seed-color-fg-neutral-inverted);
92
- }
93
-
94
- .seed-checkmark__root--variant_square-disabled_true {
95
- background-color: var(--seed-color-bg-disabled);
96
- border-color: var(--seed-color-stroke-neutral-muted);
97
- }
98
-
99
- .seed-checkmark__icon--variant_square-disabled_true, .seed-checkmark__icon--variant_square-checked_true-disabled_true, .seed-checkmark__icon--variant_square-indeterminate_true-disabled_true {
100
- color: var(--seed-color-fg-disabled);
101
- }
102
-
103
- .seed-checkmark__icon--variant_ghost-tone_brand-checked_true-disabled_false {
104
- color: var(--seed-color-fg-brand);
105
- }
106
-
107
- .seed-checkmark__icon--variant_ghost-tone_neutral-checked_true-disabled_false {
108
- color: var(--seed-color-fg-neutral);
109
- }
110
-
111
- .seed-checkmark__icon--variant_ghost-disabled_true, .seed-checkmark__icon--variant_ghost-checked_true-disabled_true {
112
- color: var(--seed-color-fg-disabled);
113
- }
114
-
115
- .seed-checkmark__root--variant_square-pressed_true-checked_false-indeterminate_false-disabled_false {
116
- background-color: var(--seed-color-bg-transparent-pressed);
117
- }
118
-
119
- .seed-checkmark__root--variant_square-tone_brand-pressed_true-checked_true-disabled_false {
120
- background-color: var(--seed-color-bg-brand-solid-pressed);
121
- }
122
-
123
- .seed-checkmark__root--variant_square-tone_neutral-pressed_true-checked_true-disabled_false {
124
- background-color: var(--seed-color-bg-neutral-inverted-pressed);
125
- }
126
-
127
- .seed-checkmark__root--variant_square-tone_brand-pressed_true-indeterminate_true-disabled_false {
128
- background-color: var(--seed-color-bg-brand-solid-pressed);
129
- }
130
-
131
- .seed-checkmark__root--variant_square-tone_neutral-pressed_true-indeterminate_true-disabled_false {
132
- background-color: var(--seed-color-bg-neutral-inverted-pressed);
133
- }
134
-
135
- .seed-checkmark__root--variant_ghost-pressed_true-checked_false-indeterminate_false-disabled_false {
136
- background-color: var(--seed-color-bg-transparent-pressed);
137
- }
138
-
139
- .seed-checkmark__root--variant_ghost-tone_brand-pressed_true-checked_true-disabled_false {
140
- background-color: var(--seed-color-palette-carrot-200);
141
- }
142
-
143
- .seed-checkmark__root--variant_ghost-tone_neutral-pressed_true-checked_true-disabled_false {
144
- background-color: var(--seed-color-palette-gray-200);
145
- }
146
- }