@globalbrain/sefirot 3.15.0 → 3.17.0

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 (37) hide show
  1. package/lib/components/SActionList.vue +1 -0
  2. package/lib/components/SActionListItem.vue +12 -3
  3. package/lib/components/SActionMenu.vue +84 -0
  4. package/lib/components/SButton.vue +41 -28
  5. package/lib/components/SCard.vue +2 -2
  6. package/lib/components/SCardBlock.vue +32 -6
  7. package/lib/components/SControl.vue +50 -0
  8. package/lib/components/SControlActionMenu.vue +43 -0
  9. package/lib/components/SControlButton.vue +45 -0
  10. package/lib/components/SControlCenter.vue +24 -0
  11. package/lib/components/SControlInputSearch.vue +68 -0
  12. package/lib/components/SControlLeft.vue +24 -0
  13. package/lib/components/SControlPagination.vue +26 -0
  14. package/lib/components/SControlRight.vue +24 -0
  15. package/lib/components/SControlText.vue +12 -0
  16. package/lib/components/SDropdown.vue +1 -1
  17. package/lib/components/SDropdownSection.vue +7 -1
  18. package/lib/components/SDropdownSectionDateRange.vue +126 -0
  19. package/lib/components/SDropdownSectionDateRangeDateFromTo.vue +88 -0
  20. package/lib/components/SDropdownSectionDateRangeYear.vue +73 -0
  21. package/lib/components/SDropdownSectionDateRangeYearHalf.vue +94 -0
  22. package/lib/components/SDropdownSectionDateRangeYearQuarter.vue +96 -0
  23. package/lib/components/SDropdownSectionMenu.vue +5 -34
  24. package/lib/components/SInputText.vue +9 -7
  25. package/lib/components/SPagination.vue +132 -0
  26. package/lib/components/STable.vue +6 -2
  27. package/lib/components/STableColumn.vue +1 -1
  28. package/lib/components/SW.vue +1 -1
  29. package/lib/composables/Card.ts +15 -3
  30. package/lib/composables/Control.ts +43 -0
  31. package/lib/composables/Dropdown.ts +47 -9
  32. package/lib/composables/Table.ts +11 -9
  33. package/lib/composables/V.ts +5 -5
  34. package/lib/mixins/Control.ts +33 -0
  35. package/lib/styles/utilities.css +113 -3
  36. package/lib/support/DateRange.ts +227 -0
  37. package/package.json +11 -11
@@ -0,0 +1,132 @@
1
+ <script setup lang="ts">
2
+ import IconCaretLeft from '@iconify-icons/ph/caret-left-bold'
3
+ import IconCaretRight from '@iconify-icons/ph/caret-right-bold'
4
+ import { computed } from 'vue'
5
+ import { useTrans } from '../composables/Lang'
6
+ import { format } from '../support/Num'
7
+ import SButton from './SButton.vue'
8
+
9
+ export type Size = 'mini' | 'small' | 'medium'
10
+ export type Align = 'left' | 'center' | 'right'
11
+
12
+ const props = withDefaults(defineProps<{
13
+ size?: Size
14
+ align?: Align
15
+ total: number
16
+ page: number
17
+ perPage: number
18
+ }>(), {
19
+ size: 'medium',
20
+ align: 'center'
21
+ })
22
+
23
+ const emit = defineEmits<{
24
+ (e: 'prev'): void
25
+ (e: 'next'): void
26
+ }>()
27
+
28
+ const { t } = useTrans({
29
+ en: { prev: 'Prev', next: 'Next' },
30
+ ja: { prev: '前へ', next: '次へ' }
31
+ })
32
+
33
+ const from = computed(() => {
34
+ return props.page === 1 ? 1 : (props.page - 1) * props.perPage + 1
35
+ })
36
+
37
+ const to = computed(() => {
38
+ const value = props.page * props.perPage
39
+
40
+ return value > props.total ? props.total : value
41
+ })
42
+
43
+ const hasPrev = computed(() => {
44
+ return props.page > 1
45
+ })
46
+
47
+ const hasNext = computed(() => {
48
+ return to.value < props.total
49
+ })
50
+
51
+ function prev() {
52
+ hasPrev.value && emit('prev')
53
+ }
54
+
55
+ function next() {
56
+ hasNext.value && emit('next')
57
+ }
58
+ </script>
59
+
60
+ <template>
61
+ <div class="SPagination" :class="[size, align]">
62
+ <div class="button prev">
63
+ <SButton
64
+ type="outline"
65
+ mode="mute"
66
+ :size="size"
67
+ :lead-icon="IconCaretLeft"
68
+ :label="t.prev"
69
+ :disabled="!hasPrev"
70
+ @click="prev"
71
+ />
72
+ </div>
73
+ <div class="text">
74
+ {{ format(from) }}–{{ format(to) }} of {{ format(props.total) }}
75
+ </div>
76
+ <div class="button next">
77
+ <SButton
78
+ type="outline"
79
+ mode="mute"
80
+ :size="size"
81
+ :trail-icon="IconCaretRight"
82
+ :label="t.next"
83
+ :disabled="!hasNext"
84
+ @click="next"
85
+ />
86
+ </div>
87
+ </div>
88
+ </template>
89
+
90
+ <style scoped lang="postcss">
91
+ .SPagination {
92
+ display: flex;
93
+ align-items: center;
94
+ }
95
+
96
+ .text {
97
+ padding: 0 8px;
98
+ line-height: 24px;
99
+ font-size: 14px;
100
+ color: var(--c-text-2);
101
+ }
102
+
103
+ .SPagination.mini {
104
+ gap: 8px;
105
+ }
106
+
107
+ .SPagination.small {
108
+ gap: 8px;
109
+ }
110
+
111
+ .SPagination.medium {
112
+ gap: 12px;
113
+ }
114
+
115
+ .SPagination.left {
116
+ .prev { order: 1; }
117
+ .next { order: 2; }
118
+ .text { order: 3; }
119
+ }
120
+
121
+ .SPagination.center {
122
+ .prev { order: 1; }
123
+ .text { order: 2; }
124
+ .next { order: 3; }
125
+ }
126
+
127
+ .SPagination.right {
128
+ .text { order: 1; }
129
+ .prev { order: 2; }
130
+ .next { order: 3; }
131
+ }
132
+ </style>
@@ -491,7 +491,9 @@ function updateSelected(selected: unknown[]) {
491
491
  width: 100%;
492
492
 
493
493
  .STable.borderless & {
494
+ border-top: 0;
494
495
  border-right: 0;
496
+ border-bottom: 0;
495
497
  border-left: 0;
496
498
  border-radius: 0;
497
499
  }
@@ -523,7 +525,8 @@ function updateSelected(selected: unknown[]) {
523
525
  display: none;
524
526
  }
525
527
 
526
- .STable.has-header & {
528
+ .STable.has-header &,
529
+ .STable.borderless & {
527
530
  border-radius: 0;
528
531
  }
529
532
  }
@@ -533,7 +536,8 @@ function updateSelected(selected: unknown[]) {
533
536
  line-height: 0;
534
537
  max-height: var(--table-max-height, 100%);
535
538
 
536
- .STable.has-footer & {
539
+ .STable.has-footer &,
540
+ .STable.borderless & {
537
541
  border-radius: 0;
538
542
  }
539
543
  }
@@ -148,7 +148,7 @@ function stopDialogPositionListener() {
148
148
 
149
149
  <style scoped lang="postcss">
150
150
  .STableColumn {
151
- background-color: var(--c-bg-elv-4);
151
+ background-color: var(--c-bg-elv-3);
152
152
 
153
153
  &.has-header {
154
154
  border-top: 1px solid var(--c-gutter);
@@ -1,3 +1,3 @@
1
1
  <template>
2
- <wbr><span class="u-nowrap"><slot /></span>
2
+ <wbr><span class="s-nowrap"><slot /></span>
3
3
  </template>
@@ -1,4 +1,4 @@
1
- import { type Ref, inject, provide, ref } from 'vue'
1
+ import { type ComputedRef, type Ref, computed, inject, provide, ref, toValue } from 'vue'
2
2
 
3
3
  export interface CardState {
4
4
  isCollapsed: Ref<boolean>
@@ -6,7 +6,10 @@ export interface CardState {
6
6
  toggleCollapse(): void
7
7
  }
8
8
 
9
- export const CardStateKey = 'card-state'
9
+ export type CardBlockSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge'
10
+
11
+ export const CardStateKey = 'sefirot-card-state-key'
12
+ export const CardBlockSizeKey = 'sefirot-card-block-size-key'
10
13
 
11
14
  export function provideCardState(): CardState {
12
15
  const isCollapsed = ref(false)
@@ -30,8 +33,12 @@ export function provideCardState(): CardState {
30
33
  return cardState
31
34
  }
32
35
 
36
+ export function provideCardBlockSize(cardBlockSize: ComputedRef<CardBlockSize | null>): void {
37
+ provide(CardBlockSizeKey, cardBlockSize)
38
+ }
39
+
33
40
  export function useCardState(): CardState {
34
- const cardState = inject<CardState | null>(CardStateKey, null)
41
+ const cardState = inject<CardState | null>(CardStateKey, null) || null
35
42
 
36
43
  if (!cardState) {
37
44
  throw new Error(
@@ -43,3 +50,8 @@ export function useCardState(): CardState {
43
50
 
44
51
  return cardState
45
52
  }
53
+
54
+ export function useCardBlockSize(): ComputedRef<CardBlockSize | null> {
55
+ const cardSize = inject<ComputedRef<CardBlockSize | null> | null>(CardBlockSizeKey, null) || null
56
+ return computed(() => toValue(cardSize))
57
+ }
@@ -0,0 +1,43 @@
1
+ import { type ComputedRef, computed, inject, provide, toValue } from 'vue'
2
+
3
+ export type ControlSize = 'small' | 'medium'
4
+ export type ControlPosition = 'left' | 'center' | 'right'
5
+
6
+ export const ControlSizeKey = 'sefirot-control-size-key'
7
+ export const ControlPositionKey = 'sefirot-control-position-key'
8
+
9
+ export function provideControlSize(controlSize: ComputedRef<ControlSize>): void {
10
+ provide(ControlSizeKey, controlSize)
11
+ }
12
+
13
+ export function provideControlPosition(controlPosition: ControlPosition): void {
14
+ provide(ControlPositionKey, controlPosition)
15
+ }
16
+
17
+ export function useControlSize(): ComputedRef<ControlSize> {
18
+ const controlSize = inject<ComputedRef<ControlSize> | null>(ControlSizeKey, null) || null
19
+
20
+ if (!controlSize) {
21
+ throw new Error(
22
+ '[sefirot] Unexpected call to `useControlSize`. This probably means'
23
+ + ' you are using `<SControl>` child component outside of `<SControl>`.'
24
+ + ' Make sure to wrap the component within `<SControl>` component.'
25
+ )
26
+ }
27
+
28
+ return computed(() => toValue(controlSize))
29
+ }
30
+
31
+ export function useControlPosition(): ControlPosition {
32
+ const controlPosition = inject<ControlPosition | null>(ControlPositionKey, null) || null
33
+
34
+ if (!controlPosition) {
35
+ throw new Error(
36
+ '[sefirot] Unexpected call to `useControlPosition`. This probably means'
37
+ + ' you are using `<SControl>` child component outside of `<SControl>`.'
38
+ + ' Make sure to wrap the component within `<SControl>` component.'
39
+ )
40
+ }
41
+
42
+ return controlPosition
43
+ }
@@ -1,13 +1,21 @@
1
1
  import { useElementBounding, useWindowSize } from '@vueuse/core'
2
- import { type Component, type MaybeRef, type Ref, ref, unref } from 'vue'
2
+ import { type Component, type MaybeRef, type MaybeRefOrGetter, type Ref, ref, unref } from 'vue'
3
+ import { type ActionList } from '../components/SActionList.vue'
4
+ import { type DateRange } from '../support/DateRange'
3
5
 
4
6
  export type DropdownSection =
5
7
  | DropdownSectionMenu
6
8
  | DropdownSectionFilter
9
+ | DropdownSectionDateRange
7
10
  | DropdownSectionComponent
8
11
  | DropdownSectionActions
9
12
 
10
- export type DropdownSectionType = 'menu' | 'filter' | 'actions' | 'component'
13
+ export type DropdownSectionType =
14
+ | 'menu'
15
+ | 'filter'
16
+ | 'date-range'
17
+ | 'actions'
18
+ | 'component'
11
19
 
12
20
  export interface DropdownSectionBase {
13
21
  type: DropdownSectionType
@@ -15,13 +23,7 @@ export interface DropdownSectionBase {
15
23
 
16
24
  export interface DropdownSectionMenu extends DropdownSectionBase {
17
25
  type: 'menu'
18
- options: DropdownSectionMenuOption[]
19
- }
20
-
21
- export interface DropdownSectionMenuOption {
22
- label: string
23
- disabled?: boolean
24
- onClick(): void
26
+ options: ActionList
25
27
  }
26
28
 
27
29
  export interface DropdownSectionFilter extends DropdownSectionBase {
@@ -60,6 +62,12 @@ export interface DropdownSectionFilterOptionAvatar extends DropdownSectionFilter
60
62
  image?: string | null
61
63
  }
62
64
 
65
+ export interface DropdownSectionDateRange extends DropdownSectionBase {
66
+ type: 'date-range'
67
+ range: MaybeRefOrGetter<DateRange>
68
+ onApply(range: DateRange): void
69
+ }
70
+
63
71
  export interface DropdownSectionActions extends DropdownSectionBase {
64
72
  type: 'actions'
65
73
  options: DropdownSectionActionsOption[]
@@ -87,6 +95,36 @@ export function createDropdown(section: DropdownSection[]): DropdownSection[] {
87
95
  return section
88
96
  }
89
97
 
98
+ export function createDropdownDateRange(
99
+ section: Omit<DropdownSectionDateRange, 'type'>
100
+ ): DropdownSectionDateRange {
101
+ return { type: 'date-range', ...section }
102
+ }
103
+
104
+ export function createDropdownMenu(
105
+ section: Omit<DropdownSectionMenu, 'type'>
106
+ ): DropdownSectionMenu {
107
+ return { type: 'menu', ...section }
108
+ }
109
+
110
+ export function createDropdownFilter(
111
+ section: Omit<DropdownSectionFilter, 'type'>
112
+ ): DropdownSectionFilter {
113
+ return { type: 'filter', ...section }
114
+ }
115
+
116
+ export function createDropdownActions(
117
+ section: Omit<DropdownSectionActions, 'type'>
118
+ ): DropdownSectionActions {
119
+ return { type: 'actions', ...section }
120
+ }
121
+
122
+ export function createDropdownComponent(
123
+ section: Omit<DropdownSectionComponent, 'type'>
124
+ ): DropdownSectionComponent {
125
+ return { type: 'component', ...section }
126
+ }
127
+
90
128
  export function useManualDropdownPosition(
91
129
  container?: Ref<any>,
92
130
  initPosition?: 'top' | 'bottom'
@@ -8,27 +8,29 @@ export interface Table<
8
8
  R extends Record<string, any> = any,
9
9
  SR extends Record<string, any> = any
10
10
  > {
11
+ records?: MaybeRef<R[] | null | undefined>
11
12
  orders: MaybeRef<O[]>
12
13
  columns: MaybeRef<TableColumns<O, R, SR>>
13
- menu?: MaybeRef<TableMenu[] | TableMenu[][]>
14
+ summary?: MaybeRef<SR | null | undefined>
15
+ indexField?: keyof R
16
+ loading?: MaybeRef<boolean | undefined>
17
+ rowSize?: MaybeRef<number | undefined>
18
+ borderless?: MaybeRef<boolean>
19
+
20
+ /**
21
+ * @deprecated Use `<SControl>` to add equivalent features.
22
+ */
14
23
  actions?: MaybeRef<TableHeaderAction[]>
15
- records?: MaybeRef<R[] | null | undefined>
24
+ menu?: MaybeRef<TableMenu[] | TableMenu[][]>
16
25
  header?: MaybeRef<boolean | undefined>
17
26
  footer?: MaybeRef<boolean | undefined>
18
- summary?: MaybeRef<SR | null | undefined>
19
27
  total?: MaybeRef<number | null | undefined>
20
28
  page?: MaybeRef<number | null | undefined>
21
29
  perPage?: MaybeRef<number | null | undefined>
22
- /** @deprecated use `actions` instead */
23
30
  reset?: MaybeRef<boolean | undefined>
24
- borderless?: MaybeRef<boolean>
25
- loading?: MaybeRef<boolean | undefined>
26
- rowSize?: MaybeRef<number | undefined>
27
31
  borderSize?: MaybeRef<number | undefined>
28
- indexField?: keyof R
29
32
  onPrev?(): void
30
33
  onNext?(): void
31
- /** @deprecated use `actions` instead */
32
34
  onReset?(): void
33
35
  }
34
36
 
@@ -28,8 +28,8 @@ export function useV<
28
28
  Data extends { [key in keyof Rules]: any },
29
29
  Rules extends ValidationArgs = ValidationArgs
30
30
  >(
31
- data: MaybeRefOrGetter<Data>,
32
- rules: MaybeRefOrGetter<Rules>
31
+ data?: MaybeRefOrGetter<Data>,
32
+ rules?: MaybeRefOrGetter<Rules>
33
33
  ): V<Data, Rules> {
34
34
  const { t } = useTrans({
35
35
  en: { notify: 'Form contains errors. Please correct them and try again.' },
@@ -38,10 +38,10 @@ export function useV<
38
38
 
39
39
  const snackbars = useSnackbars()
40
40
 
41
- const d = computed(() => toValue(data))
42
- const r = computed(() => toValue(rules))
41
+ const d = computed(() => toValue(data) ?? {})
42
+ const r = computed(() => toValue(rules) ?? {})
43
43
 
44
- const validation = useVuelidate(r, d)
44
+ const validation = useVuelidate(r, d) as any
45
45
 
46
46
  function reset(): void {
47
47
  validation.value.$reset()
@@ -0,0 +1,33 @@
1
+ import { type App } from 'vue'
2
+ import SControl from '../components/SControl.vue'
3
+ import SControlActionMenu from '../components/SControlActionMenu.vue'
4
+ import SControlButton from '../components/SControlButton.vue'
5
+ import SControlCenter from '../components/SControlCenter.vue'
6
+ import SControlInputSearch from '../components/SControlInputSearch.vue'
7
+ import SControlLeft from '../components/SControlLeft.vue'
8
+ import SControlRight from '../components/SControlRight.vue'
9
+ import SControlText from '../components/SControlText.vue'
10
+
11
+ export function mixin(app: App): void {
12
+ app.component('SControl', SControl)
13
+ app.component('SControlActionMenu', SControlActionMenu)
14
+ app.component('SControlButton', SControlButton)
15
+ app.component('SControlCenter', SControlCenter)
16
+ app.component('SControlInputSearch', SControlInputSearch)
17
+ app.component('SControlLeft', SControlLeft)
18
+ app.component('SControlRight', SControlRight)
19
+ app.component('SControlText', SControlText)
20
+ }
21
+
22
+ declare module 'vue' {
23
+ export interface GlobalComponents {
24
+ SControl: typeof SControl
25
+ SControlActionMenu: typeof SControlActionMenu
26
+ SControlButton: typeof SControlButton
27
+ SControlCenter: typeof SControlCenter
28
+ SControlInputSearch: typeof SControlInputSearch
29
+ SControlLeft: typeof SControlLeft
30
+ SControlRight: typeof SControlRight
31
+ SControlText: typeof SControlText
32
+ }
33
+ }
@@ -1,3 +1,113 @@
1
- .u-nowrap {
2
- white-space: nowrap;
3
- }
1
+ .bg-elv-1 { background-color: var(--c-bg-elv-1); }
2
+ .bg-elv-2 { background-color: var(--c-bg-elv-2); }
3
+ .bg-elv-3 { background-color: var(--c-bg-elv-3); }
4
+ .bg-elv-4 { background-color: var(--c-bg-elv-4); }
5
+
6
+ .s-flex { display: flex; }
7
+
8
+ .s-font-12 { font-size: 12px; }
9
+ .s-font-14 { font-size: 14px; }
10
+ .s-font-16 { font-size: 16px; }
11
+ .s-font-20 { font-size: 20px; }
12
+ .s-font-24 { font-size: 24px; }
13
+ .s-font-32 { font-size: 32px; }
14
+
15
+ .s-font-w-100 { font-weight: 100; }
16
+ .s-font-w-200 { font-weight: 200; }
17
+ .s-font-w-300 { font-weight: 300; }
18
+ .s-font-w-400 { font-weight: 400; }
19
+ .s-font-w-500 { font-weight: 500; }
20
+ .s-font-w-600 { font-weight: 600; }
21
+ .s-font-w-700 { font-weight: 700; }
22
+ .s-font-w-800 { font-weight: 800; }
23
+ .s-font-w-900 { font-weight: 900; }
24
+
25
+ .s-gap-4 { gap: 4px; }
26
+ .s-gap-8 { gap: 8px; }
27
+ .s-gap-12 { gap: 12px; }
28
+ .s-gap-16 { gap: 16px; }
29
+
30
+ .s-grow { flex-grow: 1; }
31
+ .s-grow-0 { flex-grow: 0; }
32
+
33
+ .s-nowrap { white-space: nowrap; }
34
+
35
+ .s-overflow-hidden { overflow: hidden; }
36
+
37
+ .s-p-8 { padding: 8px; }
38
+ .s-p-12 { padding: 12px; }
39
+ .s-p-16 { padding: 16px; }
40
+ .s-p-24 { padding: 24px; }
41
+ .s-p-32 { padding: 32px; }
42
+ .s-p-48 { padding: 48px; }
43
+ .s-p-56 { padding: 56px; }
44
+ .s-p-64 { padding: 64px; }
45
+
46
+ .s-pb-8 { padding-bottom: 8px; }
47
+ .s-pb-12 { padding-bottom: 12px; }
48
+ .s-pb-16 { padding-bottom: 16px; }
49
+ .s-pb-24 { padding-bottom: 24px; }
50
+ .s-pb-32 { padding-bottom: 32px; }
51
+ .s-pb-48 { padding-bottom: 48px; }
52
+ .s-pb-56 { padding-bottom: 56px; }
53
+ .s-pb-64 { padding-bottom: 64px; }
54
+
55
+ .s-pl-8 { padding-left: 8px; }
56
+ .s-pl-12 { padding-left: 12px; }
57
+ .s-pl-16 { padding-left: 16px; }
58
+ .s-pl-24 { padding-left: 24px; }
59
+ .s-pl-32 { padding-left: 32px; }
60
+ .s-pl-48 { padding-left: 48px; }
61
+ .s-pl-56 { padding-left: 56px; }
62
+ .s-pl-64 { padding-left: 64px; }
63
+
64
+ .s-pr-8 { padding-right: 8px; }
65
+ .s-pr-12 { padding-right: 12px; }
66
+ .s-pr-16 { padding-right: 16px; }
67
+ .s-pr-24 { padding-right: 24px; }
68
+ .s-pr-32 { padding-right: 32px; }
69
+ .s-pr-48 { padding-right: 48px; }
70
+ .s-pr-56 { padding-right: 56px; }
71
+ .s-pr-64 { padding-right: 64px; }
72
+
73
+ .s-pt-8 { padding-top: 8px; }
74
+ .s-pt-12 { padding-top: 12px; }
75
+ .s-pt-16 { padding-top: 16px; }
76
+ .s-pt-24 { padding-top: 24px; }
77
+ .s-pt-32 { padding-top: 32px; }
78
+ .s-pt-48 { padding-top: 48px; }
79
+ .s-pt-56 { padding-top: 56px; }
80
+ .s-pt-64 { padding-top: 64px; }
81
+
82
+ .s-px-8 { padding-right: 8px; padding-left: 8px; }
83
+ .s-px-12 { padding-right: 12px; padding-left: 12px; }
84
+ .s-px-16 { padding-right: 16px; padding-left: 16px; }
85
+ .s-px-24 { padding-right: 24px; padding-left: 24px; }
86
+ .s-px-32 { padding-right: 32px; padding-left: 32px; }
87
+ .s-px-48 { padding-right: 48px; padding-left: 48px; }
88
+ .s-px-56 { padding-right: 56px; padding-left: 56px; }
89
+ .s-px-64 { padding-right: 64px; padding-left: 64px; }
90
+
91
+ .s-py-8 { padding-top: 8px; padding-bottom: 8px; }
92
+ .s-py-12 { padding-top: 12px; padding-bottom: 12px; }
93
+ .s-py-16 { padding-top: 16px; padding-bottom: 16px; }
94
+ .s-py-24 { padding-top: 24px; padding-bottom: 24px; }
95
+ .s-py-32 { padding-top: 32px; padding-bottom: 32px; }
96
+ .s-py-48 { padding-top: 48px; padding-bottom: 48px; }
97
+ .s-py-56 { padding-top: 56px; padding-bottom: 56px; }
98
+ .s-py-64 { padding-top: 64px; padding-bottom: 64px; }
99
+
100
+ .s-shrink { flex-shrink: 1; }
101
+ .s-shrink-0 { flex-shrink: 0; }
102
+
103
+ .s-text-1 { color: var(--c-text-1); }
104
+ .s-text-2 { color: var(--c-text-2); }
105
+ .s-text-3 { color: var(--c-text-3); }
106
+
107
+ .s-w-256 { width: 256px; }
108
+ .s-w-320 { width: 320px; }
109
+ .s-w-512 { width: 512px; }
110
+
111
+ .s-max-w-256 { max-width: 256px; }
112
+ .s-max-w-320 { max-width: 320px; }
113
+ .s-max-w-512 { max-width: 512px; }