@insymetri/styleguide 0.1.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.
- package/dist/IIActionGroup/IIActionGroup.svelte +11 -0
- package/dist/IIActionGroup/IIActionGroup.svelte.d.ts +6 -0
- package/dist/IIActionGroup/index.d.ts +1 -0
- package/dist/IIActionGroup/index.js +1 -0
- package/dist/IIAsyncState/IIAsyncState.svelte +50 -0
- package/dist/IIAsyncState/IIAsyncState.svelte.d.ts +15 -0
- package/dist/IIAsyncState/index.d.ts +1 -0
- package/dist/IIAsyncState/index.js +1 -0
- package/dist/IIAuditTrail/IIAuditTrail.svelte +167 -0
- package/dist/IIAuditTrail/IIAuditTrail.svelte.d.ts +13 -0
- package/dist/IIAuditTrail/IIAuditTrail.types.d.ts +14 -0
- package/dist/IIAuditTrail/IIAuditTrail.types.js +1 -0
- package/dist/IIAuditTrail/index.d.ts +2 -0
- package/dist/IIAuditTrail/index.js +1 -0
- package/dist/IIBadge/IIBadge.svelte +46 -0
- package/dist/IIBadge/IIBadge.svelte.d.ts +11 -0
- package/dist/IIBadge/IIBadge.types.d.ts +1 -0
- package/dist/IIBadge/IIBadge.types.js +1 -0
- package/dist/IIBadge/index.d.ts +2 -0
- package/dist/IIBadge/index.js +1 -0
- package/dist/IIButton/IIButton.svelte +103 -0
- package/dist/IIButton/IIButton.svelte.d.ts +23 -0
- package/dist/IIButton/index.d.ts +1 -0
- package/dist/IIButton/index.js +1 -0
- package/dist/IICheckbox/IICheckbox.svelte +66 -0
- package/dist/IICheckbox/IICheckbox.svelte.d.ts +16 -0
- package/dist/IICheckbox/index.d.ts +1 -0
- package/dist/IICheckbox/index.js +1 -0
- package/dist/IICheckboxList/IICheckboxList.svelte +15 -0
- package/dist/IICheckboxList/IICheckboxList.svelte.d.ts +7 -0
- package/dist/IICheckboxList/index.d.ts +1 -0
- package/dist/IICheckboxList/index.js +1 -0
- package/dist/IICombobox/IICombobox.svelte +158 -0
- package/dist/IICombobox/IICombobox.svelte.d.ts +39 -0
- package/dist/IICombobox/index.d.ts +1 -0
- package/dist/IICombobox/index.js +1 -0
- package/dist/IIDatePicker/IIDatePicker.svelte +107 -0
- package/dist/IIDatePicker/IIDatePicker.svelte.d.ts +9 -0
- package/dist/IIDatePicker/index.d.ts +1 -0
- package/dist/IIDatePicker/index.js +1 -0
- package/dist/IIDropdownInput/IIDropdownInput.svelte +76 -0
- package/dist/IIDropdownInput/IIDropdownInput.svelte.d.ts +15 -0
- package/dist/IIDropdownInput/index.d.ts +1 -0
- package/dist/IIDropdownInput/index.js +1 -0
- package/dist/IIDropdownMenu/IIDropdownMenu.svelte +74 -0
- package/dist/IIDropdownMenu/IIDropdownMenu.svelte.d.ts +19 -0
- package/dist/IIDropdownMenu/index.d.ts +1 -0
- package/dist/IIDropdownMenu/index.js +1 -0
- package/dist/IIEditableBadges/IIEditableBadges.svelte +91 -0
- package/dist/IIEditableBadges/IIEditableBadges.svelte.d.ts +17 -0
- package/dist/IIEditableBadges/index.d.ts +1 -0
- package/dist/IIEditableBadges/index.js +1 -0
- package/dist/IIEditableText/IIEditableText.svelte +143 -0
- package/dist/IIEditableText/IIEditableText.svelte.d.ts +12 -0
- package/dist/IIEditableText/index.d.ts +1 -0
- package/dist/IIEditableText/index.js +1 -0
- package/dist/IIEmptyState/IIEmptyState.svelte +29 -0
- package/dist/IIEmptyState/IIEmptyState.svelte.d.ts +9 -0
- package/dist/IIEmptyState/index.d.ts +1 -0
- package/dist/IIEmptyState/index.js +1 -0
- package/dist/IIFilterChip/IIFilterChip.svelte +47 -0
- package/dist/IIFilterChip/IIFilterChip.svelte.d.ts +9 -0
- package/dist/IIFilterChip/index.d.ts +1 -0
- package/dist/IIFilterChip/index.js +1 -0
- package/dist/IIFormField/IIFormField.svelte +18 -0
- package/dist/IIFormField/IIFormField.svelte.d.ts +9 -0
- package/dist/IIFormField/index.d.ts +1 -0
- package/dist/IIFormField/index.js +1 -0
- package/dist/IIInput/IIInput.svelte +69 -0
- package/dist/IIInput/IIInput.svelte.d.ts +15 -0
- package/dist/IIInput/index.d.ts +1 -0
- package/dist/IIInput/index.js +1 -0
- package/dist/IIModal/IIModal.svelte +76 -0
- package/dist/IIModal/IIModal.svelte.d.ts +15 -0
- package/dist/IIModal/index.d.ts +1 -0
- package/dist/IIModal/index.js +1 -0
- package/dist/IIOverflowActions/IIOverflowActions.svelte +104 -0
- package/dist/IIOverflowActions/IIOverflowActions.svelte.d.ts +16 -0
- package/dist/IIOverflowActions/index.d.ts +1 -0
- package/dist/IIOverflowActions/index.js +1 -0
- package/dist/IIStatusBadge/IIStatusBadge.svelte +29 -0
- package/dist/IIStatusBadge/IIStatusBadge.svelte.d.ts +9 -0
- package/dist/IIStatusBadge/index.d.ts +1 -0
- package/dist/IIStatusBadge/index.js +1 -0
- package/dist/IISwitch/IISwitch.svelte +60 -0
- package/dist/IISwitch/IISwitch.svelte.d.ts +15 -0
- package/dist/IISwitch/index.d.ts +1 -0
- package/dist/IISwitch/index.js +1 -0
- package/dist/IITable/IITable.svelte +17 -0
- package/dist/IITable/IITable.svelte.d.ts +8 -0
- package/dist/IITable/index.d.ts +1 -0
- package/dist/IITable/index.js +1 -0
- package/dist/IITableSkeleton/IITableSkeleton.svelte +32 -0
- package/dist/IITableSkeleton/IITableSkeleton.svelte.d.ts +8 -0
- package/dist/IITableSkeleton/index.d.ts +1 -0
- package/dist/IITableSkeleton/index.js +1 -0
- package/dist/IITabs/IITabs.svelte +139 -0
- package/dist/IITabs/IITabs.svelte.d.ts +19 -0
- package/dist/IITabs/index.d.ts +1 -0
- package/dist/IITabs/index.js +1 -0
- package/dist/IITaskCardSkeleton/IITaskCardSkeleton.svelte +15 -0
- package/dist/IITaskCardSkeleton/IITaskCardSkeleton.svelte.d.ts +26 -0
- package/dist/IITaskCardSkeleton/index.d.ts +1 -0
- package/dist/IITaskCardSkeleton/index.js +1 -0
- package/dist/IITextarea/IITextarea.svelte +79 -0
- package/dist/IITextarea/IITextarea.svelte.d.ts +15 -0
- package/dist/IITextarea/index.d.ts +1 -0
- package/dist/IITextarea/index.js +1 -0
- package/dist/IIToaster/IIToaster.svelte +5 -0
- package/dist/IIToaster/IIToaster.svelte.d.ts +18 -0
- package/dist/IIToaster/index.d.ts +1 -0
- package/dist/IIToaster/index.js +1 -0
- package/dist/IIViewFilterChip/IIViewFilterChip.svelte +37 -0
- package/dist/IIViewFilterChip/IIViewFilterChip.svelte.d.ts +8 -0
- package/dist/IIViewFilterChip/index.d.ts +1 -0
- package/dist/IIViewFilterChip/index.js +1 -0
- package/dist/Typography/Typography.svelte +67 -0
- package/dist/Typography/Typography.svelte.d.ts +18 -0
- package/dist/Typography/index.d.ts +1 -0
- package/dist/Typography/index.js +1 -0
- package/dist/icons.d.ts +92 -0
- package/dist/icons.js +104 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +35 -0
- package/dist/style/base.css +71 -0
- package/dist/style/colors.css +183 -0
- package/dist/style/global.css +2 -0
- package/dist/style/index.d.ts +1 -0
- package/dist/style/index.js +1 -0
- package/dist/style/tailwind/animations.js +89 -0
- package/dist/style/tailwind/colors.d.ts +217 -0
- package/dist/style/tailwind/colors.js +239 -0
- package/dist/style/tailwind/preset.js +103 -0
- package/dist/style/tailwind/radius.d.ts +1 -0
- package/dist/style/tailwind/radius.js +5 -0
- package/dist/style/tailwind/shadows.d.ts +15 -0
- package/dist/style/tailwind/shadows.js +27 -0
- package/dist/style/tailwind/spacing.d.ts +1 -0
- package/dist/style/tailwind/spacing.js +37 -0
- package/dist/style/tailwind/typography.d.ts +100 -0
- package/dist/style/tailwind/typography.js +39 -0
- package/dist/style/tailwind/z-index.d.ts +1 -0
- package/dist/style/tailwind/z-index.js +7 -0
- package/dist/toast.d.ts +16 -0
- package/dist/toast.js +24 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.js +4 -0
- package/package.json +79 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Typography } from './Typography.svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Typography } from './Typography.svelte';
|
package/dist/icons.d.ts
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized Phosphor icon exports
|
|
3
|
+
*
|
|
4
|
+
* All icons are imported from @iconify/json via unplugin-icons
|
|
5
|
+
* Using Phosphor Regular weight for consistency
|
|
6
|
+
*
|
|
7
|
+
* Icon naming convention:
|
|
8
|
+
* - Material "add" → IconAdd (Phosphor "plus")
|
|
9
|
+
* - Material "arrow_back" → IconArrowLeft (Phosphor "arrow-left")
|
|
10
|
+
* - Material "group" → IconUsers (Phosphor "users")
|
|
11
|
+
*/
|
|
12
|
+
export { default as IconAdd } from '~icons/ph/plus';
|
|
13
|
+
export { default as IconArrowLeft } from '~icons/ph/arrow-left';
|
|
14
|
+
export { default as IconArrowRight } from '~icons/ph/arrow-right';
|
|
15
|
+
export { default as IconClose } from '~icons/ph/x';
|
|
16
|
+
export { default as IconCheck } from '~icons/ph/check';
|
|
17
|
+
export { default as IconCheckCircle } from '~icons/ph/check-circle';
|
|
18
|
+
export { default as IconSearch } from '~icons/ph/magnifying-glass';
|
|
19
|
+
export { default as IconSearchOff } from '~icons/ph/magnifying-glass-minus';
|
|
20
|
+
export { default as IconExpandMore } from '~icons/ph/caret-down';
|
|
21
|
+
export { default as IconExpandLess } from '~icons/ph/caret-up';
|
|
22
|
+
export { default as IconChevronLeft } from '~icons/ph/caret-left';
|
|
23
|
+
export { default as IconChevronRight } from '~icons/ph/caret-right';
|
|
24
|
+
export { default as IconChevronsRight } from '~icons/ph/caret-double-right';
|
|
25
|
+
export { default as IconPlay } from '~icons/ph/play';
|
|
26
|
+
export { default as IconCall } from '~icons/ph/phone';
|
|
27
|
+
export { default as IconPhone } from '~icons/ph/phone';
|
|
28
|
+
export { default as IconPhoneMissed } from '~icons/ph/phone-slash';
|
|
29
|
+
export { default as IconPhoneDisconnect } from '~icons/ph/phone-disconnect';
|
|
30
|
+
export { default as IconPhoneIncoming } from '~icons/ph/phone-incoming';
|
|
31
|
+
export { default as IconPhoneOutgoing } from '~icons/ph/phone-outgoing';
|
|
32
|
+
export { default as IconPhonePlus } from '~icons/ph/phone-plus';
|
|
33
|
+
export { default as IconMicrophone } from '~icons/ph/microphone';
|
|
34
|
+
export { default as IconMicrophoneSlash } from '~icons/ph/microphone-slash';
|
|
35
|
+
export { default as IconSpeaker } from '~icons/ph/speaker-high';
|
|
36
|
+
export { default as IconChat } from '~icons/ph/chats-circle';
|
|
37
|
+
export { default as IconChatCircle } from '~icons/ph/chats-circle';
|
|
38
|
+
export { default as IconSms } from '~icons/ph/chat-dots';
|
|
39
|
+
export { default as IconMail } from '~icons/ph/envelope';
|
|
40
|
+
export { default as IconSend } from '~icons/ph/paper-plane-tilt';
|
|
41
|
+
export { default as IconPerson } from '~icons/ph/user';
|
|
42
|
+
export { default as IconUser } from '~icons/ph/user';
|
|
43
|
+
export { default as IconPersonAdd } from '~icons/ph/user-plus';
|
|
44
|
+
export { default as IconUserPlus } from '~icons/ph/user-plus';
|
|
45
|
+
export { default as IconUserCirclePlus } from '~icons/ph/user-circle-plus';
|
|
46
|
+
export { default as IconUserRectangle } from '~icons/ph/user-rectangle';
|
|
47
|
+
export { default as IconUserSwitch } from '~icons/ph/user-switch';
|
|
48
|
+
export { default as IconUserFour } from '~icons/ph/users-four';
|
|
49
|
+
export { default as IconUsers } from '~icons/ph/users';
|
|
50
|
+
export { default as IconGroup } from '~icons/ph/users';
|
|
51
|
+
export { default as IconAddressBook } from '~icons/ph/address-book';
|
|
52
|
+
export { default as IconShieldCheck } from '~icons/ph/shield-check';
|
|
53
|
+
export { default as IconDescription } from '~icons/ph/file-text';
|
|
54
|
+
export { default as IconArticle } from '~icons/ph/article';
|
|
55
|
+
export { default as IconAssignment } from '~icons/ph/clipboard-text';
|
|
56
|
+
export { default as IconUploadFile } from '~icons/ph/upload-simple';
|
|
57
|
+
export { default as IconNoteAdd } from '~icons/ph/note-pencil';
|
|
58
|
+
export { default as IconEdit } from '~icons/ph/pencil-simple';
|
|
59
|
+
export { default as IconEditNote } from '~icons/ph/note-pencil';
|
|
60
|
+
export { default as IconPaid } from '~icons/ph/currency-dollar-simple';
|
|
61
|
+
export { default as IconPayment } from '~icons/ph/credit-card';
|
|
62
|
+
export { default as IconPayments } from '~icons/ph/money';
|
|
63
|
+
export { default as IconBank } from '~icons/ph/bank';
|
|
64
|
+
export { default as IconCalendar } from '~icons/ph/calendar';
|
|
65
|
+
export { default as IconSchedule } from '~icons/ph/clock';
|
|
66
|
+
export { default as IconSnooze } from '~icons/ph/clock-countdown';
|
|
67
|
+
export { default as IconClockClockwise } from '~icons/ph/clock-clockwise';
|
|
68
|
+
export { default as IconUpdate } from '~icons/ph/arrows-clockwise';
|
|
69
|
+
export { default as IconSync } from '~icons/ph/arrows-clockwise';
|
|
70
|
+
export { default as IconDashboard } from '~icons/ph/squares-four';
|
|
71
|
+
export { default as IconMonitoring } from '~icons/ph/chart-line';
|
|
72
|
+
export { default as IconSettings } from '~icons/ph/gear';
|
|
73
|
+
export { default as IconViewList } from '~icons/ph/list';
|
|
74
|
+
export { default as IconGridView } from '~icons/ph/grid-four';
|
|
75
|
+
export { default as IconListAlt } from '~icons/ph/list-bullets';
|
|
76
|
+
export { default as IconMoreVert } from '~icons/ph/dots-three-vertical';
|
|
77
|
+
export { default as IconDelete } from '~icons/ph/trash';
|
|
78
|
+
export { default as IconCircle } from '~icons/ph/circle';
|
|
79
|
+
export { default as IconError } from '~icons/ph/warning-circle';
|
|
80
|
+
export { default as IconWarning } from '~icons/ph/warning';
|
|
81
|
+
export { default as IconChangeCircle } from '~icons/ph/arrows-clockwise';
|
|
82
|
+
export { default as IconGavel } from '~icons/ph/gavel';
|
|
83
|
+
export { default as IconLogin } from '~icons/ph/sign-in';
|
|
84
|
+
export { default as IconLogout } from '~icons/ph/sign-out';
|
|
85
|
+
export { default as IconSortAsc } from '~icons/ph/sort-ascending';
|
|
86
|
+
export { default as IconSortDesc } from '~icons/ph/sort-descending';
|
|
87
|
+
export { default as IconFilter } from '~icons/ph/funnel';
|
|
88
|
+
export { default as IconFilterFilled } from '~icons/ph/funnel-fill';
|
|
89
|
+
export { default as IconEye } from '~icons/ph/eye';
|
|
90
|
+
export { default as IconEyeSlash } from '~icons/ph/eye-slash';
|
|
91
|
+
export { default as IconSmartToy } from '~icons/ph/robot';
|
|
92
|
+
export { default as IconRobot } from '~icons/ph/robot';
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized Phosphor icon exports
|
|
3
|
+
*
|
|
4
|
+
* All icons are imported from @iconify/json via unplugin-icons
|
|
5
|
+
* Using Phosphor Regular weight for consistency
|
|
6
|
+
*
|
|
7
|
+
* Icon naming convention:
|
|
8
|
+
* - Material "add" → IconAdd (Phosphor "plus")
|
|
9
|
+
* - Material "arrow_back" → IconArrowLeft (Phosphor "arrow-left")
|
|
10
|
+
* - Material "group" → IconUsers (Phosphor "users")
|
|
11
|
+
*/
|
|
12
|
+
// === Navigation & Actions ===
|
|
13
|
+
export { default as IconAdd } from '~icons/ph/plus';
|
|
14
|
+
export { default as IconArrowLeft } from '~icons/ph/arrow-left';
|
|
15
|
+
export { default as IconArrowRight } from '~icons/ph/arrow-right';
|
|
16
|
+
export { default as IconClose } from '~icons/ph/x';
|
|
17
|
+
export { default as IconCheck } from '~icons/ph/check';
|
|
18
|
+
export { default as IconCheckCircle } from '~icons/ph/check-circle';
|
|
19
|
+
export { default as IconSearch } from '~icons/ph/magnifying-glass';
|
|
20
|
+
export { default as IconSearchOff } from '~icons/ph/magnifying-glass-minus';
|
|
21
|
+
export { default as IconExpandMore } from '~icons/ph/caret-down';
|
|
22
|
+
export { default as IconExpandLess } from '~icons/ph/caret-up';
|
|
23
|
+
export { default as IconChevronLeft } from '~icons/ph/caret-left';
|
|
24
|
+
export { default as IconChevronRight } from '~icons/ph/caret-right';
|
|
25
|
+
export { default as IconChevronsRight } from '~icons/ph/caret-double-right';
|
|
26
|
+
export { default as IconPlay } from '~icons/ph/play';
|
|
27
|
+
// === Communication ===
|
|
28
|
+
export { default as IconCall } from '~icons/ph/phone';
|
|
29
|
+
export { default as IconPhone } from '~icons/ph/phone';
|
|
30
|
+
export { default as IconPhoneMissed } from '~icons/ph/phone-slash';
|
|
31
|
+
export { default as IconPhoneDisconnect } from '~icons/ph/phone-disconnect';
|
|
32
|
+
export { default as IconPhoneIncoming } from '~icons/ph/phone-incoming';
|
|
33
|
+
export { default as IconPhoneOutgoing } from '~icons/ph/phone-outgoing';
|
|
34
|
+
export { default as IconPhonePlus } from '~icons/ph/phone-plus';
|
|
35
|
+
export { default as IconMicrophone } from '~icons/ph/microphone';
|
|
36
|
+
export { default as IconMicrophoneSlash } from '~icons/ph/microphone-slash';
|
|
37
|
+
export { default as IconSpeaker } from '~icons/ph/speaker-high';
|
|
38
|
+
export { default as IconChat } from '~icons/ph/chats-circle';
|
|
39
|
+
export { default as IconChatCircle } from '~icons/ph/chats-circle';
|
|
40
|
+
export { default as IconSms } from '~icons/ph/chat-dots';
|
|
41
|
+
export { default as IconMail } from '~icons/ph/envelope';
|
|
42
|
+
export { default as IconSend } from '~icons/ph/paper-plane-tilt';
|
|
43
|
+
// === People & Users ===
|
|
44
|
+
export { default as IconPerson } from '~icons/ph/user';
|
|
45
|
+
export { default as IconUser } from '~icons/ph/user';
|
|
46
|
+
export { default as IconPersonAdd } from '~icons/ph/user-plus';
|
|
47
|
+
export { default as IconUserPlus } from '~icons/ph/user-plus';
|
|
48
|
+
export { default as IconUserCirclePlus } from '~icons/ph/user-circle-plus';
|
|
49
|
+
export { default as IconUserRectangle } from '~icons/ph/user-rectangle';
|
|
50
|
+
export { default as IconUserSwitch } from '~icons/ph/user-switch';
|
|
51
|
+
export { default as IconUserFour } from '~icons/ph/users-four';
|
|
52
|
+
export { default as IconUsers } from '~icons/ph/users';
|
|
53
|
+
export { default as IconGroup } from '~icons/ph/users';
|
|
54
|
+
export { default as IconAddressBook } from '~icons/ph/address-book';
|
|
55
|
+
export { default as IconShieldCheck } from '~icons/ph/shield-check';
|
|
56
|
+
// === Documents & Files ===
|
|
57
|
+
export { default as IconDescription } from '~icons/ph/file-text';
|
|
58
|
+
export { default as IconArticle } from '~icons/ph/article';
|
|
59
|
+
export { default as IconAssignment } from '~icons/ph/clipboard-text';
|
|
60
|
+
export { default as IconUploadFile } from '~icons/ph/upload-simple';
|
|
61
|
+
export { default as IconNoteAdd } from '~icons/ph/note-pencil';
|
|
62
|
+
export { default as IconEdit } from '~icons/ph/pencil-simple';
|
|
63
|
+
export { default as IconEditNote } from '~icons/ph/note-pencil';
|
|
64
|
+
// === Finance & Money ===
|
|
65
|
+
export { default as IconPaid } from '~icons/ph/currency-dollar-simple';
|
|
66
|
+
export { default as IconPayment } from '~icons/ph/credit-card';
|
|
67
|
+
export { default as IconPayments } from '~icons/ph/money';
|
|
68
|
+
export { default as IconBank } from '~icons/ph/bank';
|
|
69
|
+
// === Time & Schedule ===
|
|
70
|
+
export { default as IconCalendar } from '~icons/ph/calendar';
|
|
71
|
+
export { default as IconSchedule } from '~icons/ph/clock';
|
|
72
|
+
export { default as IconSnooze } from '~icons/ph/clock-countdown';
|
|
73
|
+
export { default as IconClockClockwise } from '~icons/ph/clock-clockwise';
|
|
74
|
+
export { default as IconUpdate } from '~icons/ph/arrows-clockwise';
|
|
75
|
+
export { default as IconSync } from '~icons/ph/arrows-clockwise';
|
|
76
|
+
// === UI Elements ===
|
|
77
|
+
export { default as IconDashboard } from '~icons/ph/squares-four';
|
|
78
|
+
export { default as IconMonitoring } from '~icons/ph/chart-line';
|
|
79
|
+
export { default as IconSettings } from '~icons/ph/gear';
|
|
80
|
+
export { default as IconViewList } from '~icons/ph/list';
|
|
81
|
+
export { default as IconGridView } from '~icons/ph/grid-four';
|
|
82
|
+
export { default as IconListAlt } from '~icons/ph/list-bullets';
|
|
83
|
+
export { default as IconMoreVert } from '~icons/ph/dots-three-vertical';
|
|
84
|
+
export { default as IconDelete } from '~icons/ph/trash';
|
|
85
|
+
export { default as IconCircle } from '~icons/ph/circle';
|
|
86
|
+
// === Status & Feedback ===
|
|
87
|
+
export { default as IconError } from '~icons/ph/warning-circle';
|
|
88
|
+
export { default as IconWarning } from '~icons/ph/warning';
|
|
89
|
+
export { default as IconChangeCircle } from '~icons/ph/arrows-clockwise';
|
|
90
|
+
// === Legal & Auth ===
|
|
91
|
+
export { default as IconGavel } from '~icons/ph/gavel';
|
|
92
|
+
export { default as IconLogin } from '~icons/ph/sign-in';
|
|
93
|
+
export { default as IconLogout } from '~icons/ph/sign-out';
|
|
94
|
+
// === Sort & Filter ===
|
|
95
|
+
export { default as IconSortAsc } from '~icons/ph/sort-ascending';
|
|
96
|
+
export { default as IconSortDesc } from '~icons/ph/sort-descending';
|
|
97
|
+
export { default as IconFilter } from '~icons/ph/funnel';
|
|
98
|
+
export { default as IconFilterFilled } from '~icons/ph/funnel-fill';
|
|
99
|
+
// === Visibility ===
|
|
100
|
+
export { default as IconEye } from '~icons/ph/eye';
|
|
101
|
+
export { default as IconEyeSlash } from '~icons/ph/eye-slash';
|
|
102
|
+
// === Other ===
|
|
103
|
+
export { default as IconSmartToy } from '~icons/ph/robot';
|
|
104
|
+
export { default as IconRobot } from '~icons/ph/robot';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export { IIActionGroup } from './IIActionGroup';
|
|
2
|
+
export { IIAsyncState } from './IIAsyncState';
|
|
3
|
+
export { IIAuditTrail } from './IIAuditTrail';
|
|
4
|
+
export { IIBadge } from './IIBadge';
|
|
5
|
+
export { IIButton } from './IIButton';
|
|
6
|
+
export { IICheckbox } from './IICheckbox';
|
|
7
|
+
export { IICheckboxList } from './IICheckboxList';
|
|
8
|
+
export { IICombobox } from './IICombobox';
|
|
9
|
+
export { IIDatePicker } from './IIDatePicker';
|
|
10
|
+
export { IIDropdownInput } from './IIDropdownInput';
|
|
11
|
+
export { IIDropdownMenu } from './IIDropdownMenu';
|
|
12
|
+
export { IIEditableBadges } from './IIEditableBadges';
|
|
13
|
+
export { IIEditableText } from './IIEditableText';
|
|
14
|
+
export { IIEmptyState } from './IIEmptyState';
|
|
15
|
+
export { IIFilterChip } from './IIFilterChip';
|
|
16
|
+
export { IIFormField } from './IIFormField';
|
|
17
|
+
export { IIInput } from './IIInput';
|
|
18
|
+
export { IIModal } from './IIModal';
|
|
19
|
+
export { IIOverflowActions } from './IIOverflowActions';
|
|
20
|
+
export { IIStatusBadge } from './IIStatusBadge';
|
|
21
|
+
export { IISwitch } from './IISwitch';
|
|
22
|
+
export { IITable } from './IITable';
|
|
23
|
+
export { IITableSkeleton } from './IITableSkeleton';
|
|
24
|
+
export { IITabs } from './IITabs';
|
|
25
|
+
export { IITaskCardSkeleton } from './IITaskCardSkeleton';
|
|
26
|
+
export { IITextarea } from './IITextarea';
|
|
27
|
+
export { IIToaster } from './IIToaster';
|
|
28
|
+
export { IIViewFilterChip } from './IIViewFilterChip';
|
|
29
|
+
export type { AuditEvent, AuditFilter, Severity } from './IIAuditTrail';
|
|
30
|
+
export type { BadgeVariant } from './IIBadge';
|
|
31
|
+
export { toast } from './toast';
|
|
32
|
+
export { cn } from './utils/cn';
|
|
33
|
+
export * from './icons';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @insymetri/styleguide
|
|
2
|
+
// Components
|
|
3
|
+
export { IIActionGroup } from './IIActionGroup';
|
|
4
|
+
export { IIAsyncState } from './IIAsyncState';
|
|
5
|
+
export { IIAuditTrail } from './IIAuditTrail';
|
|
6
|
+
export { IIBadge } from './IIBadge';
|
|
7
|
+
export { IIButton } from './IIButton';
|
|
8
|
+
export { IICheckbox } from './IICheckbox';
|
|
9
|
+
export { IICheckboxList } from './IICheckboxList';
|
|
10
|
+
export { IICombobox } from './IICombobox';
|
|
11
|
+
export { IIDatePicker } from './IIDatePicker';
|
|
12
|
+
export { IIDropdownInput } from './IIDropdownInput';
|
|
13
|
+
export { IIDropdownMenu } from './IIDropdownMenu';
|
|
14
|
+
export { IIEditableBadges } from './IIEditableBadges';
|
|
15
|
+
export { IIEditableText } from './IIEditableText';
|
|
16
|
+
export { IIEmptyState } from './IIEmptyState';
|
|
17
|
+
export { IIFilterChip } from './IIFilterChip';
|
|
18
|
+
export { IIFormField } from './IIFormField';
|
|
19
|
+
export { IIInput } from './IIInput';
|
|
20
|
+
export { IIModal } from './IIModal';
|
|
21
|
+
export { IIOverflowActions } from './IIOverflowActions';
|
|
22
|
+
export { IIStatusBadge } from './IIStatusBadge';
|
|
23
|
+
export { IISwitch } from './IISwitch';
|
|
24
|
+
export { IITable } from './IITable';
|
|
25
|
+
export { IITableSkeleton } from './IITableSkeleton';
|
|
26
|
+
export { IITabs } from './IITabs';
|
|
27
|
+
export { IITaskCardSkeleton } from './IITaskCardSkeleton';
|
|
28
|
+
export { IITextarea } from './IITextarea';
|
|
29
|
+
export { IIToaster } from './IIToaster';
|
|
30
|
+
export { IIViewFilterChip } from './IIViewFilterChip';
|
|
31
|
+
// Utilities
|
|
32
|
+
export { toast } from './toast';
|
|
33
|
+
export { cn } from './utils/cn';
|
|
34
|
+
// Icons
|
|
35
|
+
export * from './icons';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* Inter Variable — self-hosted, font-display: block to prevent FOUT */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Inter Variable';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-display: block;
|
|
6
|
+
font-weight: 100 900;
|
|
7
|
+
src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
|
|
8
|
+
unicode-range:
|
|
9
|
+
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
|
|
10
|
+
U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'Inter Variable';
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-display: block;
|
|
17
|
+
font-weight: 100 900;
|
|
18
|
+
src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
|
|
19
|
+
unicode-range:
|
|
20
|
+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
|
|
21
|
+
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:root {
|
|
25
|
+
--sidebar-width: 22.4rem; /* 224px */
|
|
26
|
+
--topbar-height: 4.8rem; /* 48px */
|
|
27
|
+
--transition-fast: 0.15s ease;
|
|
28
|
+
--transition-base: 0.2s ease;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@layer base {
|
|
32
|
+
html {
|
|
33
|
+
font-size: 62.5%; /* 1rem = 10px — pixel-intuitive rem values */
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
body {
|
|
37
|
+
font-family:
|
|
38
|
+
'Inter Variable',
|
|
39
|
+
Inter,
|
|
40
|
+
-apple-system,
|
|
41
|
+
BlinkMacSystemFont,
|
|
42
|
+
'Segoe UI',
|
|
43
|
+
sans-serif;
|
|
44
|
+
font-size: 1.4rem; /* 14px default */
|
|
45
|
+
margin: 0;
|
|
46
|
+
padding: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
* {
|
|
50
|
+
scrollbar-width: thin;
|
|
51
|
+
scrollbar-color: var(--ii-gray-300) transparent;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
*::-webkit-scrollbar {
|
|
55
|
+
width: 6px;
|
|
56
|
+
height: 6px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
*::-webkit-scrollbar-track {
|
|
60
|
+
background: transparent;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
*::-webkit-scrollbar-thumb {
|
|
64
|
+
background-color: var(--ii-gray-300);
|
|
65
|
+
border-radius: var(--ii-radius-full);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
69
|
+
background-color: var(--ii-gray-400);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ii-white: #ffffff;
|
|
3
|
+
--ii-black: #000000;
|
|
4
|
+
|
|
5
|
+
/* Brand */
|
|
6
|
+
--ii-primary: #1173d4;
|
|
7
|
+
--ii-primary-hover: #0f5bb6;
|
|
8
|
+
|
|
9
|
+
/* Grayscale */
|
|
10
|
+
--ii-gray-50: #f9fafb;
|
|
11
|
+
--ii-gray-100: #f3f4f6;
|
|
12
|
+
--ii-gray-200: #e5e7eb;
|
|
13
|
+
--ii-gray-300: #d1d5db;
|
|
14
|
+
--ii-gray-400: #9ca3af;
|
|
15
|
+
--ii-gray-500: #6b7280;
|
|
16
|
+
--ii-gray-600: #4b5563;
|
|
17
|
+
--ii-gray-700: #374151;
|
|
18
|
+
--ii-gray-800: #1f2937;
|
|
19
|
+
--ii-gray-900: #111827;
|
|
20
|
+
|
|
21
|
+
/* Semantic */
|
|
22
|
+
--ii-success: #10b981;
|
|
23
|
+
--ii-success-bg: #d1fae5;
|
|
24
|
+
--ii-success-text: #047857;
|
|
25
|
+
--ii-warning: #f59e0b;
|
|
26
|
+
--ii-warning-bg: #fef3c7;
|
|
27
|
+
--ii-warning-text: #b45309;
|
|
28
|
+
--ii-error: #ef4444;
|
|
29
|
+
--ii-error-bg: #fee2e2;
|
|
30
|
+
--ii-error-text: #dc2626;
|
|
31
|
+
--ii-info: #0ea5e9;
|
|
32
|
+
--ii-info-bg: #e0f2fe;
|
|
33
|
+
--ii-info-text: #0369a1;
|
|
34
|
+
|
|
35
|
+
/* Contact types */
|
|
36
|
+
--ii-client: #06b6d4;
|
|
37
|
+
--ii-client-light: rgba(6, 182, 212, 0.1);
|
|
38
|
+
--ii-client-border: rgba(6, 182, 212, 0.4);
|
|
39
|
+
--ii-applicant: #8b5cf6;
|
|
40
|
+
--ii-applicant-light: rgba(139, 92, 246, 0.1);
|
|
41
|
+
--ii-applicant-border: rgba(139, 92, 246, 0.3);
|
|
42
|
+
|
|
43
|
+
/* Surfaces */
|
|
44
|
+
--ii-surface: white;
|
|
45
|
+
--ii-surface-raised: white;
|
|
46
|
+
--ii-background: #f9fafb;
|
|
47
|
+
--ii-background-alt: #fbfbfb;
|
|
48
|
+
|
|
49
|
+
/* Text */
|
|
50
|
+
--ii-text-primary: #111827;
|
|
51
|
+
--ii-text-accent: #111827;
|
|
52
|
+
--ii-text-secondary: #6b7280;
|
|
53
|
+
--ii-text-tertiary: #9ca3af;
|
|
54
|
+
--ii-text-inverse: white;
|
|
55
|
+
|
|
56
|
+
/* Borders */
|
|
57
|
+
--ii-border: #e5e7eb;
|
|
58
|
+
--ii-border-strong: #d1d5db;
|
|
59
|
+
|
|
60
|
+
/* Input */
|
|
61
|
+
--color-input-bg: white;
|
|
62
|
+
--color-input-bg-disabled: #f3f4f6;
|
|
63
|
+
--color-input-border: #d1d5db;
|
|
64
|
+
--color-input-border-hover: #9ca3af;
|
|
65
|
+
--color-input-border-active: #111827;
|
|
66
|
+
--color-input-border-error: var(--ii-error);
|
|
67
|
+
--color-input-text: var(--ii-text-primary);
|
|
68
|
+
--color-input-text-disabled: var(--ii-text-secondary);
|
|
69
|
+
--color-input-placeholder: var(--ii-text-tertiary);
|
|
70
|
+
|
|
71
|
+
/* Dropdown */
|
|
72
|
+
--color-dropdown-bg: white;
|
|
73
|
+
--color-dropdown-border: #e5e7eb;
|
|
74
|
+
--color-dropdown-item-bg-hover: #f3f4f6;
|
|
75
|
+
--color-dropdown-item-bg-selected: #e5e7eb;
|
|
76
|
+
--color-dropdown-item-text: var(--ii-text-primary);
|
|
77
|
+
--color-dropdown-item-text-selected: var(--ii-text-primary);
|
|
78
|
+
|
|
79
|
+
/* Buttons */
|
|
80
|
+
--ii-button-ghost-hover: #eef0f3;
|
|
81
|
+
|
|
82
|
+
/* Badge variants */
|
|
83
|
+
--ii-badge-grey-bg: rgba(107, 114, 128, 0.1);
|
|
84
|
+
--ii-badge-grey-text: rgb(75, 85, 99);
|
|
85
|
+
--ii-badge-grey-border: rgba(107, 114, 128, 0.3);
|
|
86
|
+
--ii-badge-blue-bg: rgba(17, 115, 212, 0.1);
|
|
87
|
+
--ii-badge-blue-text: rgb(17, 115, 212);
|
|
88
|
+
--ii-badge-blue-border: rgba(17, 115, 212, 0.3);
|
|
89
|
+
--ii-badge-red-bg: rgba(220, 38, 38, 0.1);
|
|
90
|
+
--ii-badge-red-text: rgb(185, 28, 28);
|
|
91
|
+
--ii-badge-red-border: rgba(220, 38, 38, 0.3);
|
|
92
|
+
--ii-badge-purple-bg: rgba(79, 70, 229, 0.1);
|
|
93
|
+
--ii-badge-purple-text: rgb(79, 70, 229);
|
|
94
|
+
--ii-badge-purple-border: rgba(79, 70, 229, 0.3);
|
|
95
|
+
--ii-badge-green-bg: rgba(34, 197, 94, 0.1);
|
|
96
|
+
--ii-badge-green-text: rgb(22, 163, 74);
|
|
97
|
+
--ii-badge-green-border: rgba(34, 197, 94, 0.3);
|
|
98
|
+
--ii-badge-orange-bg: rgba(249, 115, 22, 0.1);
|
|
99
|
+
--ii-badge-orange-text: rgb(194, 65, 12);
|
|
100
|
+
--ii-badge-orange-border: rgba(249, 115, 22, 0.3);
|
|
101
|
+
--ii-badge-cyan-bg: rgba(6, 182, 212, 0.1);
|
|
102
|
+
--ii-badge-cyan-text: rgb(14, 116, 144);
|
|
103
|
+
--ii-badge-cyan-border: rgba(6, 182, 212, 0.3);
|
|
104
|
+
--ii-badge-pink-bg: rgba(236, 72, 153, 0.1);
|
|
105
|
+
--ii-badge-pink-text: rgb(190, 24, 93);
|
|
106
|
+
--ii-badge-pink-border: rgba(236, 72, 153, 0.3);
|
|
107
|
+
--ii-badge-teal-bg: rgba(20, 184, 166, 0.1);
|
|
108
|
+
--ii-badge-teal-text: rgb(13, 148, 136);
|
|
109
|
+
--ii-badge-teal-border: rgba(20, 184, 166, 0.3);
|
|
110
|
+
--ii-badge-amber-bg: rgba(245, 158, 11, 0.1);
|
|
111
|
+
--ii-badge-amber-text: rgb(180, 83, 9);
|
|
112
|
+
--ii-badge-amber-border: rgba(245, 158, 11, 0.3);
|
|
113
|
+
--ii-badge-yellow-bg: rgba(234, 179, 8, 0.1);
|
|
114
|
+
--ii-badge-yellow-text: rgb(161, 98, 7);
|
|
115
|
+
--ii-badge-yellow-border: rgba(234, 179, 8, 0.3);
|
|
116
|
+
|
|
117
|
+
/* Focus ring */
|
|
118
|
+
--ii-focus-primary: rgba(17, 115, 212, 0.1);
|
|
119
|
+
--ii-focus-error: rgba(239, 68, 68, 0.1);
|
|
120
|
+
|
|
121
|
+
/* Overlay / hover */
|
|
122
|
+
--ii-overlay: rgba(0, 0, 0, 0.5);
|
|
123
|
+
--ii-hover-overlay: rgba(0, 0, 0, 0.1);
|
|
124
|
+
|
|
125
|
+
/* Filter chips */
|
|
126
|
+
--ii-filter-bg: #eff6ff;
|
|
127
|
+
--ii-filter-border: #bfdbfe;
|
|
128
|
+
--ii-filter-text: #1d4ed8;
|
|
129
|
+
--ii-filter-operator: #3b82f6;
|
|
130
|
+
--ii-filter-remove-bg: #dbeafe;
|
|
131
|
+
--ii-filter-remove-hover: #bfdbfe;
|
|
132
|
+
--ii-filter-remove-icon: #2563eb;
|
|
133
|
+
|
|
134
|
+
/* Tab (TaskBar) */
|
|
135
|
+
--ii-tab-bg: #f6f7f8;
|
|
136
|
+
--ii-tab-active: #eceef1;
|
|
137
|
+
|
|
138
|
+
/* Primary opacity variants */
|
|
139
|
+
--ii-primary-2: rgba(17, 115, 212, 0.02);
|
|
140
|
+
--ii-primary-5: rgba(17, 115, 212, 0.05);
|
|
141
|
+
--ii-primary-8: rgba(17, 115, 212, 0.08);
|
|
142
|
+
--ii-primary-15: rgba(17, 115, 212, 0.15);
|
|
143
|
+
--ii-primary-20: rgba(17, 115, 212, 0.2);
|
|
144
|
+
|
|
145
|
+
/* Overlay variants */
|
|
146
|
+
--ii-overlay-light: rgba(0, 0, 0, 0.4);
|
|
147
|
+
--ii-overlay-heavy: rgba(0, 0, 0, 0.6);
|
|
148
|
+
--ii-subtle-bg: rgba(0, 0, 0, 0.05);
|
|
149
|
+
|
|
150
|
+
/* Shadow colors */
|
|
151
|
+
--ii-shadow-xs: rgba(0, 0, 0, 0.04);
|
|
152
|
+
--ii-shadow-subtle-color: rgba(0, 0, 0, 0.08);
|
|
153
|
+
--ii-shadow-card-hover-color: rgba(0, 0, 0, 0.2);
|
|
154
|
+
--ii-shadow-dropdown-color: rgba(0, 0, 0, 0.3);
|
|
155
|
+
|
|
156
|
+
/* Semantic light variants */
|
|
157
|
+
--ii-error-light: rgba(220, 38, 38, 0.05);
|
|
158
|
+
--ii-success-light: rgba(34, 197, 94, 0.05);
|
|
159
|
+
--ii-success-15: rgba(34, 197, 94, 0.15);
|
|
160
|
+
--ii-client-15: rgba(6, 182, 212, 0.15);
|
|
161
|
+
--ii-focus-blue: rgba(59, 130, 246, 0.1);
|
|
162
|
+
--ii-code-highlight: rgba(86, 156, 214, 0.15);
|
|
163
|
+
--ii-inspector-bg: #1e1e1e;
|
|
164
|
+
--ii-inspector-text: #d4d4d4;
|
|
165
|
+
--ii-inspector-border: #444444;
|
|
166
|
+
--ii-inspector-header: #2d2d2d;
|
|
167
|
+
--ii-inspector-keyword: #569cd6;
|
|
168
|
+
|
|
169
|
+
/* Misc */
|
|
170
|
+
--ii-error-dark: #dc2626;
|
|
171
|
+
--ii-success-dark-alt: #059669;
|
|
172
|
+
--ii-success-dark: #16a34a;
|
|
173
|
+
--ii-email-bg: #fce7f3;
|
|
174
|
+
--ii-email-text: #be185d;
|
|
175
|
+
--ii-manual-bg: #fff3e0;
|
|
176
|
+
--ii-manual-text: #e65100;
|
|
177
|
+
--ii-login-gradient-start: #f5f7fa;
|
|
178
|
+
--ii-login-gradient-end: #c3cfe2;
|
|
179
|
+
--ii-login-card-bg: rgba(255, 255, 255, 0.95);
|
|
180
|
+
--ii-login-card-border: rgba(255, 255, 255, 0.8);
|
|
181
|
+
--ii-login-particle: rgba(17, 115, 212, 0.3);
|
|
182
|
+
--ii-login-particle-link: rgba(17, 115, 212, 0.6);
|
|
183
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as preset } from './tailwind/preset';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as preset } from './tailwind/preset';
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import plugin from 'tailwindcss/plugin';
|
|
2
|
+
export const keyframes = {
|
|
3
|
+
loginFadeInUp: {
|
|
4
|
+
from: { opacity: '0', transform: 'translateY(20px)' },
|
|
5
|
+
to: { opacity: '1', transform: 'translateY(0)' },
|
|
6
|
+
},
|
|
7
|
+
loginPulse: {
|
|
8
|
+
'0%, 100%': { opacity: '0.6' },
|
|
9
|
+
'50%': { opacity: '1' },
|
|
10
|
+
},
|
|
11
|
+
loginOrbit: {
|
|
12
|
+
'0%': { transform: 'translate(-50%, -50%) rotate(0deg) translateX(24px)' },
|
|
13
|
+
'100%': { transform: 'translate(-50%, -50%) rotate(360deg) translateX(24px)' },
|
|
14
|
+
},
|
|
15
|
+
modalIn: {
|
|
16
|
+
from: { opacity: '0', transform: 'scale(0.96)' },
|
|
17
|
+
to: { opacity: '1', transform: 'scale(1)' },
|
|
18
|
+
},
|
|
19
|
+
spin: {
|
|
20
|
+
to: { transform: 'rotate(360deg)' },
|
|
21
|
+
},
|
|
22
|
+
fadeIn: {
|
|
23
|
+
from: { opacity: '0' },
|
|
24
|
+
to: { opacity: '1' },
|
|
25
|
+
},
|
|
26
|
+
scaleIn: {
|
|
27
|
+
from: { opacity: '0', transform: 'scale(0.96)' },
|
|
28
|
+
to: { opacity: '1', transform: 'scale(1)' },
|
|
29
|
+
},
|
|
30
|
+
slideIn: {
|
|
31
|
+
from: { opacity: '0', transform: 'translateY(-0.8rem)' },
|
|
32
|
+
to: { opacity: '1', transform: 'translateY(0)' },
|
|
33
|
+
},
|
|
34
|
+
shake: {
|
|
35
|
+
'0%, 100%': { transform: 'translateX(0)' },
|
|
36
|
+
'20%, 60%': { transform: 'translateX(-4px)' },
|
|
37
|
+
'40%, 80%': { transform: 'translateX(4px)' },
|
|
38
|
+
},
|
|
39
|
+
shimmer: {
|
|
40
|
+
'0%': { backgroundPosition: '-200px 0' },
|
|
41
|
+
'100%': { backgroundPosition: 'calc(200px + 100%) 0' },
|
|
42
|
+
},
|
|
43
|
+
'skeleton-loading': {
|
|
44
|
+
'0%': { opacity: '0.6' },
|
|
45
|
+
'50%': { opacity: '1' },
|
|
46
|
+
'100%': { opacity: '0.6' },
|
|
47
|
+
},
|
|
48
|
+
commandPaletteSlideIn: {
|
|
49
|
+
from: { opacity: '0', transform: 'translateX(-50%) translateY(-10px)' },
|
|
50
|
+
to: { opacity: '1', transform: 'translateX(-50%) translateY(0)' },
|
|
51
|
+
},
|
|
52
|
+
ring: {
|
|
53
|
+
'0%, 100%': { transform: 'rotate(0deg)' },
|
|
54
|
+
'10%, 30%': { transform: 'rotate(15deg)' },
|
|
55
|
+
'20%': { transform: 'rotate(-15deg)' },
|
|
56
|
+
'40%': { transform: 'rotate(0deg)' },
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
export const animation = {
|
|
60
|
+
spin: 'spin 0.6s linear infinite',
|
|
61
|
+
'fade-in': 'fadeIn 200ms ease-out',
|
|
62
|
+
'scale-in': 'scaleIn 200ms ease-out',
|
|
63
|
+
'slide-in': 'slideIn 150ms ease-out',
|
|
64
|
+
shake: 'shake 0.4s ease-out',
|
|
65
|
+
shimmer: 'shimmer 1.5s infinite',
|
|
66
|
+
skeleton: 'skeleton-loading 1.2s ease-in-out infinite',
|
|
67
|
+
'modal-in': 'modalIn 200ms ease-out',
|
|
68
|
+
'login-fade-in-up': 'loginFadeInUp 0.6s ease-out',
|
|
69
|
+
'login-pulse': 'loginPulse 2s ease-in-out infinite',
|
|
70
|
+
'login-orbit': 'loginOrbit 1.5s linear infinite',
|
|
71
|
+
ring: 'ring 1.5s ease-in-out infinite',
|
|
72
|
+
pulse: 'loginPulse 1.5s ease-in-out infinite',
|
|
73
|
+
'pulse-slow': 'loginPulse 2s ease-in-out infinite',
|
|
74
|
+
};
|
|
75
|
+
// Loading skeleton utilities — bundled gradient + animation in a single class.
|
|
76
|
+
export const loadingSkeletonsPlugin = plugin(({ addUtilities }) => {
|
|
77
|
+
addUtilities({
|
|
78
|
+
'.shimmer-bg': {
|
|
79
|
+
background: 'linear-gradient(90deg, var(--ii-gray-200) 25%, var(--ii-gray-100) 50%, var(--ii-gray-200) 75%)',
|
|
80
|
+
backgroundSize: '200% 100%',
|
|
81
|
+
animation: animation.shimmer,
|
|
82
|
+
},
|
|
83
|
+
'.skeleton-bg': {
|
|
84
|
+
background: 'linear-gradient(90deg, var(--ii-background-alt) 0%, var(--ii-border) 50%, var(--ii-background-alt) 100%)',
|
|
85
|
+
backgroundSize: '200% 100%',
|
|
86
|
+
animation: animation.skeleton,
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
});
|